Skip to content

Commit acab5cd

Browse files
committed
Standardize bulk API method naming to camelCase
Updated all references of bulk API methods from snake_case (e.g., 'bulk_create') to camelCase (e.g., 'bulkCreate') across schema files, documentation, and Zod definitions. This change ensures consistency in API method naming conventions.
1 parent a57a65a commit acab5cd

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

content/docs/references/data/core/ObjectCapabilities.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: ObjectCapabilities Schema Reference
1010
| **trackHistory** | `boolean` | optional | |
1111
| **searchable** | `boolean` | optional | |
1212
| **apiEnabled** | `boolean` | optional | |
13-
| **apiMethods** | `Enum<'get' \| 'list' \| 'create' \| 'update' \| 'delete' \| 'upsert' \| 'bulk_create' \| 'bulk_update' \| 'bulk_delete' \| 'bulk_upsert' \| 'aggregate' \| 'history' \| 'search' \| 'restore' \| 'purge' \| 'import' \| 'export'>[]` | optional | Allowed API operations |
13+
| **apiMethods** | `Enum<'get' \| 'list' \| 'create' \| 'update' \| 'delete' \| 'upsert' \| 'bulkCreate' \| 'bulkUpdate' \| 'bulkDelete' \| 'bulkUpsert' \| 'aggregate' \| 'history' \| 'search' \| 'restore' \| 'purge' \| 'import' \| 'export'>[]` | optional | Allowed API operations |
1414
| **files** | `boolean` | optional | |
1515
| **feedEnabled** | `boolean` | optional | |
1616
| **trash** | `boolean` | optional | |

packages/spec/json-schema/Object.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@
321321
"update",
322322
"delete",
323323
"upsert",
324-
"bulk_create",
325-
"bulk_update",
326-
"bulk_delete",
327-
"bulk_upsert",
324+
"bulkCreate",
325+
"bulkUpdate",
326+
"bulkDelete",
327+
"bulkUpsert",
328328
"aggregate",
329329
"history",
330330
"search",

packages/spec/json-schema/ObjectCapabilities.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"update",
2828
"delete",
2929
"upsert",
30-
"bulk_create",
31-
"bulk_update",
32-
"bulk_delete",
33-
"bulk_upsert",
30+
"bulkCreate",
31+
"bulkUpdate",
32+
"bulkDelete",
33+
"bulkUpsert",
3434
"aggregate",
3535
"history",
3636
"search",

packages/spec/src/api/contract.zod.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ export const ApiContracts = {
141141
input: BulkRequestSchema,
142142
output: BulkResponseSchema
143143
},
144+
bulkUpsert: {
145+
input: BulkRequestSchema,
146+
output: BulkResponseSchema
147+
},
144148
bulkDelete: {
145149
input: z.object({ ids: z.array(z.string()) }),
146150
output: BulkResponseSchema

packages/spec/src/data/object.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const ObjectCapabilities = z.object({
2424
'get', 'list',
2525
'create', 'update', 'delete',
2626
'upsert',
27-
'bulk_create', 'bulk_update', 'bulk_delete', 'bulk_upsert',
27+
'bulkCreate', 'bulkUpdate', 'bulkDelete', 'bulkUpsert',
2828
'aggregate', // count, sum, group by
2929
'history', // audit trail access
3030
'search', // full text search

0 commit comments

Comments
 (0)