@centrali-io/centrali-sdk 4.2.2 → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/index.ts +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2217,7 +2217,7 @@ exports.StructuresManager = StructuresManager;
|
|
|
2217
2217
|
* // Create a new collection
|
|
2218
2218
|
* const collection = await client.collections.create({
|
|
2219
2219
|
* name: 'Orders',
|
|
2220
|
-
*
|
|
2220
|
+
* recordSlug: 'orders',
|
|
2221
2221
|
* properties: [
|
|
2222
2222
|
* { name: 'title', type: 'string', required: true },
|
|
2223
2223
|
* { name: 'amount', type: 'number', minimum: 0 }
|
|
@@ -2225,7 +2225,7 @@ exports.StructuresManager = StructuresManager;
|
|
|
2225
2225
|
* });
|
|
2226
2226
|
*
|
|
2227
2227
|
* // Validate before creating
|
|
2228
|
-
* const validation = await client.collections.validate({
|
|
2228
|
+
* const validation = await client.collections.validate({ recordSlug: 'orders' });
|
|
2229
2229
|
* ```
|
|
2230
2230
|
*/
|
|
2231
2231
|
class CollectionsManager {
|
|
@@ -2291,7 +2291,7 @@ class CollectionsManager {
|
|
|
2291
2291
|
* ```ts
|
|
2292
2292
|
* const collection = await client.collections.create({
|
|
2293
2293
|
* name: 'Orders',
|
|
2294
|
-
*
|
|
2294
|
+
* recordSlug: 'orders',
|
|
2295
2295
|
* description: 'Customer orders',
|
|
2296
2296
|
* properties: [
|
|
2297
2297
|
* { name: 'title', type: 'string', required: true },
|
package/index.ts
CHANGED
|
@@ -1639,7 +1639,7 @@ export interface Structure {
|
|
|
1639
1639
|
*/
|
|
1640
1640
|
export interface CreateStructureInput {
|
|
1641
1641
|
name: string;
|
|
1642
|
-
|
|
1642
|
+
recordSlug: string;
|
|
1643
1643
|
description?: string;
|
|
1644
1644
|
properties?: PropertyDefinition[];
|
|
1645
1645
|
enableVersioning?: boolean;
|
|
@@ -4419,7 +4419,7 @@ export class StructuresManager {
|
|
|
4419
4419
|
* // Create a new collection
|
|
4420
4420
|
* const collection = await client.collections.create({
|
|
4421
4421
|
* name: 'Orders',
|
|
4422
|
-
*
|
|
4422
|
+
* recordSlug: 'orders',
|
|
4423
4423
|
* properties: [
|
|
4424
4424
|
* { name: 'title', type: 'string', required: true },
|
|
4425
4425
|
* { name: 'amount', type: 'number', minimum: 0 }
|
|
@@ -4427,7 +4427,7 @@ export class StructuresManager {
|
|
|
4427
4427
|
* });
|
|
4428
4428
|
*
|
|
4429
4429
|
* // Validate before creating
|
|
4430
|
-
* const validation = await client.collections.validate({
|
|
4430
|
+
* const validation = await client.collections.validate({ recordSlug: 'orders' });
|
|
4431
4431
|
* ```
|
|
4432
4432
|
*/
|
|
4433
4433
|
export class CollectionsManager {
|
|
@@ -4503,7 +4503,7 @@ export class CollectionsManager {
|
|
|
4503
4503
|
* ```ts
|
|
4504
4504
|
* const collection = await client.collections.create({
|
|
4505
4505
|
* name: 'Orders',
|
|
4506
|
-
*
|
|
4506
|
+
* recordSlug: 'orders',
|
|
4507
4507
|
* description: 'Customer orders',
|
|
4508
4508
|
* properties: [
|
|
4509
4509
|
* { name: 'title', type: 'string', required: true },
|