@datocms/cma-client 1.1.5 → 1.1.6
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/cjs/generated/resources/Workflow.js +2 -2
- package/dist/cjs/generated/resources/Workflow.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +12 -1
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +16 -1
- package/dist/esm/generated/resources/Workflow.js +2 -2
- package/dist/esm/generated/resources/Workflow.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +12 -1
- package/dist/types/generated/SimpleSchemaTypes.d.ts +16 -1
- package/package.json +2 -2
- package/resources.json +2 -0
- package/src/generated/SchemaTypes.ts +12 -1
- package/src/generated/SimpleSchemaTypes.ts +16 -1
- package/src/generated/resources/Workflow.ts +2 -2
|
@@ -59,7 +59,7 @@ var Workflow = /** @class */ (function (_super) {
|
|
|
59
59
|
Workflow.prototype.create = function (body) {
|
|
60
60
|
return this.rawCreate(Utils.serializeRequestBody(body, {
|
|
61
61
|
type: 'workflow',
|
|
62
|
-
attributes: ['name', 'stages'],
|
|
62
|
+
attributes: ['name', 'api_key', 'stages'],
|
|
63
63
|
relationships: [],
|
|
64
64
|
})).then(function (body) {
|
|
65
65
|
return Utils.deserializeResponseBody(body);
|
|
@@ -92,7 +92,7 @@ var Workflow = /** @class */ (function (_super) {
|
|
|
92
92
|
return this.rawUpdate(Utils.toId(workflowId), Utils.serializeRequestBody(body, {
|
|
93
93
|
id: Utils.toId(workflowId),
|
|
94
94
|
type: 'workflow',
|
|
95
|
-
attributes: ['name', 'stages'],
|
|
95
|
+
attributes: ['name', 'api_key', 'stages'],
|
|
96
96
|
relationships: [],
|
|
97
97
|
})).then(function (body) {
|
|
98
98
|
return Utils.deserializeResponseBody(body);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workflow.js","sourceRoot":"","sources":["../../../../src/generated/resources/Workflow.ts"],"names":[],"mappings":";;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CAAC,OAAO,CAAuC;YAC/D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,qBAAc,UAAU,CAAE;SAChC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,0BAAO,GAAP,UAAQ,UAAmD;QACzD,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACjD,CAAC;IAED;;;;;;;OAOG;IACH,6BAAU,GAAV,UAAW,UAAkB;QAC3B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO;YAC/B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,qBAAc,UAAU,CAAE;SAChC,CAAC,CAAC;IACL,CAAC;IA/Ke,aAAI,GAAe,UAAU,CAAC;IAgLhD,eAAC;CAAA,AAjLD,CAAsC,sBAAY,GAiLjD;kBAjLoB,QAAQ"}
|
|
@@ -9472,6 +9472,10 @@ export declare type WorkflowAttributes = {
|
|
|
9472
9472
|
* The name of the workflow
|
|
9473
9473
|
*/
|
|
9474
9474
|
name: string;
|
|
9475
|
+
/**
|
|
9476
|
+
* Workflow API key
|
|
9477
|
+
*/
|
|
9478
|
+
api_key: string;
|
|
9475
9479
|
/**
|
|
9476
9480
|
* The stages of the workflow
|
|
9477
9481
|
*/
|
|
@@ -9521,7 +9525,6 @@ export declare type WorkflowAttributes = {
|
|
|
9521
9525
|
export declare type WorkflowCreateSchema = {
|
|
9522
9526
|
data: {
|
|
9523
9527
|
type: WorkflowType;
|
|
9524
|
-
id: WorkflowIdentity;
|
|
9525
9528
|
/**
|
|
9526
9529
|
* JSON API attributes
|
|
9527
9530
|
*/
|
|
@@ -9530,6 +9533,10 @@ export declare type WorkflowCreateSchema = {
|
|
|
9530
9533
|
* The name of the workflow
|
|
9531
9534
|
*/
|
|
9532
9535
|
name: string;
|
|
9536
|
+
/**
|
|
9537
|
+
* Workflow API key
|
|
9538
|
+
*/
|
|
9539
|
+
api_key: string;
|
|
9533
9540
|
/**
|
|
9534
9541
|
* The stages of the workflow
|
|
9535
9542
|
*/
|
|
@@ -9597,6 +9604,10 @@ export declare type WorkflowUpdateSchema = {
|
|
|
9597
9604
|
* The name of the workflow
|
|
9598
9605
|
*/
|
|
9599
9606
|
name?: string;
|
|
9607
|
+
/**
|
|
9608
|
+
* Workflow API key
|
|
9609
|
+
*/
|
|
9610
|
+
api_key?: string;
|
|
9600
9611
|
/**
|
|
9601
9612
|
* The stages of the workflow
|
|
9602
9613
|
*/
|
|
@@ -9339,6 +9339,10 @@ export declare type Workflow = {
|
|
|
9339
9339
|
* The name of the workflow
|
|
9340
9340
|
*/
|
|
9341
9341
|
name: string;
|
|
9342
|
+
/**
|
|
9343
|
+
* Workflow API key
|
|
9344
|
+
*/
|
|
9345
|
+
api_key: string;
|
|
9342
9346
|
/**
|
|
9343
9347
|
* The stages of the workflow
|
|
9344
9348
|
*/
|
|
@@ -9395,6 +9399,10 @@ export declare type WorkflowAttributes = {
|
|
|
9395
9399
|
* The name of the workflow
|
|
9396
9400
|
*/
|
|
9397
9401
|
name: string;
|
|
9402
|
+
/**
|
|
9403
|
+
* Workflow API key
|
|
9404
|
+
*/
|
|
9405
|
+
api_key: string;
|
|
9398
9406
|
/**
|
|
9399
9407
|
* The stages of the workflow
|
|
9400
9408
|
*/
|
|
@@ -9442,12 +9450,15 @@ export declare type WorkflowAttributes = {
|
|
|
9442
9450
|
* via the `create.schema` link.
|
|
9443
9451
|
*/
|
|
9444
9452
|
export declare type WorkflowCreateSchema = {
|
|
9445
|
-
id?: WorkflowIdentity;
|
|
9446
9453
|
type?: WorkflowType;
|
|
9447
9454
|
/**
|
|
9448
9455
|
* The name of the workflow
|
|
9449
9456
|
*/
|
|
9450
9457
|
name: string;
|
|
9458
|
+
/**
|
|
9459
|
+
* Workflow API key
|
|
9460
|
+
*/
|
|
9461
|
+
api_key: string;
|
|
9451
9462
|
/**
|
|
9452
9463
|
* The stages of the workflow
|
|
9453
9464
|
*/
|
|
@@ -9501,6 +9512,10 @@ export declare type WorkflowUpdateSchema = {
|
|
|
9501
9512
|
* The name of the workflow
|
|
9502
9513
|
*/
|
|
9503
9514
|
name?: string;
|
|
9515
|
+
/**
|
|
9516
|
+
* Workflow API key
|
|
9517
|
+
*/
|
|
9518
|
+
api_key?: string;
|
|
9504
9519
|
/**
|
|
9505
9520
|
* The stages of the workflow
|
|
9506
9521
|
*/
|
|
@@ -31,7 +31,7 @@ var Workflow = /** @class */ (function (_super) {
|
|
|
31
31
|
Workflow.prototype.create = function (body) {
|
|
32
32
|
return this.rawCreate(Utils.serializeRequestBody(body, {
|
|
33
33
|
type: 'workflow',
|
|
34
|
-
attributes: ['name', 'stages'],
|
|
34
|
+
attributes: ['name', 'api_key', 'stages'],
|
|
35
35
|
relationships: [],
|
|
36
36
|
})).then(function (body) {
|
|
37
37
|
return Utils.deserializeResponseBody(body);
|
|
@@ -64,7 +64,7 @@ var Workflow = /** @class */ (function (_super) {
|
|
|
64
64
|
return this.rawUpdate(Utils.toId(workflowId), Utils.serializeRequestBody(body, {
|
|
65
65
|
id: Utils.toId(workflowId),
|
|
66
66
|
type: 'workflow',
|
|
67
|
-
attributes: ['name', 'stages'],
|
|
67
|
+
attributes: ['name', 'api_key', 'stages'],
|
|
68
68
|
relationships: [],
|
|
69
69
|
})).then(function (body) {
|
|
70
70
|
return Utils.deserializeResponseBody(body);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workflow.js","sourceRoot":"","sources":["../../../../src/generated/resources/Workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAsC,4BAAY;IAAlD;;IAiLA,CAAC;IA9KC;;;;;;;OAOG;IACH,yBAAM,GAAN,UAAO,IAA4C;QACjD,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAmC,IAAI,EAAE;YACjE,I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,CAAC;IACjD,CAAC;IAED;;;;;;;OAOG;IACH,6BAAU,GAAV,UAAW,UAAkB;QAC3B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO;YAC/B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,qBAAc,UAAU,CAAE;SAChC,CAAC,CAAC;IACL,CAAC;IA/Ke,aAAI,GAAe,UAAU,CAAC;IAgLhD,eAAC;CAAA,AAjLD,CAAsC,YAAY,GAiLjD;eAjLoB,QAAQ"}
|
|
@@ -9472,6 +9472,10 @@ export declare type WorkflowAttributes = {
|
|
|
9472
9472
|
* The name of the workflow
|
|
9473
9473
|
*/
|
|
9474
9474
|
name: string;
|
|
9475
|
+
/**
|
|
9476
|
+
* Workflow API key
|
|
9477
|
+
*/
|
|
9478
|
+
api_key: string;
|
|
9475
9479
|
/**
|
|
9476
9480
|
* The stages of the workflow
|
|
9477
9481
|
*/
|
|
@@ -9521,7 +9525,6 @@ export declare type WorkflowAttributes = {
|
|
|
9521
9525
|
export declare type WorkflowCreateSchema = {
|
|
9522
9526
|
data: {
|
|
9523
9527
|
type: WorkflowType;
|
|
9524
|
-
id: WorkflowIdentity;
|
|
9525
9528
|
/**
|
|
9526
9529
|
* JSON API attributes
|
|
9527
9530
|
*/
|
|
@@ -9530,6 +9533,10 @@ export declare type WorkflowCreateSchema = {
|
|
|
9530
9533
|
* The name of the workflow
|
|
9531
9534
|
*/
|
|
9532
9535
|
name: string;
|
|
9536
|
+
/**
|
|
9537
|
+
* Workflow API key
|
|
9538
|
+
*/
|
|
9539
|
+
api_key: string;
|
|
9533
9540
|
/**
|
|
9534
9541
|
* The stages of the workflow
|
|
9535
9542
|
*/
|
|
@@ -9597,6 +9604,10 @@ export declare type WorkflowUpdateSchema = {
|
|
|
9597
9604
|
* The name of the workflow
|
|
9598
9605
|
*/
|
|
9599
9606
|
name?: string;
|
|
9607
|
+
/**
|
|
9608
|
+
* Workflow API key
|
|
9609
|
+
*/
|
|
9610
|
+
api_key?: string;
|
|
9600
9611
|
/**
|
|
9601
9612
|
* The stages of the workflow
|
|
9602
9613
|
*/
|
|
@@ -9339,6 +9339,10 @@ export declare type Workflow = {
|
|
|
9339
9339
|
* The name of the workflow
|
|
9340
9340
|
*/
|
|
9341
9341
|
name: string;
|
|
9342
|
+
/**
|
|
9343
|
+
* Workflow API key
|
|
9344
|
+
*/
|
|
9345
|
+
api_key: string;
|
|
9342
9346
|
/**
|
|
9343
9347
|
* The stages of the workflow
|
|
9344
9348
|
*/
|
|
@@ -9395,6 +9399,10 @@ export declare type WorkflowAttributes = {
|
|
|
9395
9399
|
* The name of the workflow
|
|
9396
9400
|
*/
|
|
9397
9401
|
name: string;
|
|
9402
|
+
/**
|
|
9403
|
+
* Workflow API key
|
|
9404
|
+
*/
|
|
9405
|
+
api_key: string;
|
|
9398
9406
|
/**
|
|
9399
9407
|
* The stages of the workflow
|
|
9400
9408
|
*/
|
|
@@ -9442,12 +9450,15 @@ export declare type WorkflowAttributes = {
|
|
|
9442
9450
|
* via the `create.schema` link.
|
|
9443
9451
|
*/
|
|
9444
9452
|
export declare type WorkflowCreateSchema = {
|
|
9445
|
-
id?: WorkflowIdentity;
|
|
9446
9453
|
type?: WorkflowType;
|
|
9447
9454
|
/**
|
|
9448
9455
|
* The name of the workflow
|
|
9449
9456
|
*/
|
|
9450
9457
|
name: string;
|
|
9458
|
+
/**
|
|
9459
|
+
* Workflow API key
|
|
9460
|
+
*/
|
|
9461
|
+
api_key: string;
|
|
9451
9462
|
/**
|
|
9452
9463
|
* The stages of the workflow
|
|
9453
9464
|
*/
|
|
@@ -9501,6 +9512,10 @@ export declare type WorkflowUpdateSchema = {
|
|
|
9501
9512
|
* The name of the workflow
|
|
9502
9513
|
*/
|
|
9503
9514
|
name?: string;
|
|
9515
|
+
/**
|
|
9516
|
+
* Workflow API key
|
|
9517
|
+
*/
|
|
9518
|
+
api_key?: string;
|
|
9504
9519
|
/**
|
|
9505
9520
|
* The stages of the workflow
|
|
9506
9521
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@datocms/dashboard-client": "^1.1.5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "41bd5716a8c5525fb9bef069388d469b38d8e922"
|
|
46
46
|
}
|
package/resources.json
CHANGED
|
@@ -3312,6 +3312,7 @@
|
|
|
3312
3312
|
"type": "workflow",
|
|
3313
3313
|
"attributes": [
|
|
3314
3314
|
"name",
|
|
3315
|
+
"api_key",
|
|
3315
3316
|
"stages"
|
|
3316
3317
|
],
|
|
3317
3318
|
"relationships": []
|
|
@@ -3338,6 +3339,7 @@
|
|
|
3338
3339
|
"type": "workflow",
|
|
3339
3340
|
"attributes": [
|
|
3340
3341
|
"name",
|
|
3342
|
+
"api_key",
|
|
3341
3343
|
"stages"
|
|
3342
3344
|
],
|
|
3343
3345
|
"relationships": []
|
|
@@ -10104,6 +10104,10 @@ export type WorkflowAttributes = {
|
|
|
10104
10104
|
* The name of the workflow
|
|
10105
10105
|
*/
|
|
10106
10106
|
name: string;
|
|
10107
|
+
/**
|
|
10108
|
+
* Workflow API key
|
|
10109
|
+
*/
|
|
10110
|
+
api_key: string;
|
|
10107
10111
|
/**
|
|
10108
10112
|
* The stages of the workflow
|
|
10109
10113
|
*/
|
|
@@ -10154,7 +10158,6 @@ export type WorkflowAttributes = {
|
|
|
10154
10158
|
export type WorkflowCreateSchema = {
|
|
10155
10159
|
data: {
|
|
10156
10160
|
type: WorkflowType;
|
|
10157
|
-
id: WorkflowIdentity;
|
|
10158
10161
|
/**
|
|
10159
10162
|
* JSON API attributes
|
|
10160
10163
|
*/
|
|
@@ -10163,6 +10166,10 @@ export type WorkflowCreateSchema = {
|
|
|
10163
10166
|
* The name of the workflow
|
|
10164
10167
|
*/
|
|
10165
10168
|
name: string;
|
|
10169
|
+
/**
|
|
10170
|
+
* Workflow API key
|
|
10171
|
+
*/
|
|
10172
|
+
api_key: string;
|
|
10166
10173
|
/**
|
|
10167
10174
|
* The stages of the workflow
|
|
10168
10175
|
*/
|
|
@@ -10232,6 +10239,10 @@ export type WorkflowUpdateSchema = {
|
|
|
10232
10239
|
* The name of the workflow
|
|
10233
10240
|
*/
|
|
10234
10241
|
name?: string;
|
|
10242
|
+
/**
|
|
10243
|
+
* Workflow API key
|
|
10244
|
+
*/
|
|
10245
|
+
api_key?: string;
|
|
10235
10246
|
/**
|
|
10236
10247
|
* The stages of the workflow
|
|
10237
10248
|
*/
|
|
@@ -9837,6 +9837,10 @@ export type Workflow = {
|
|
|
9837
9837
|
* The name of the workflow
|
|
9838
9838
|
*/
|
|
9839
9839
|
name: string;
|
|
9840
|
+
/**
|
|
9841
|
+
* Workflow API key
|
|
9842
|
+
*/
|
|
9843
|
+
api_key: string;
|
|
9840
9844
|
/**
|
|
9841
9845
|
* The stages of the workflow
|
|
9842
9846
|
*/
|
|
@@ -9893,6 +9897,10 @@ export type WorkflowAttributes = {
|
|
|
9893
9897
|
* The name of the workflow
|
|
9894
9898
|
*/
|
|
9895
9899
|
name: string;
|
|
9900
|
+
/**
|
|
9901
|
+
* Workflow API key
|
|
9902
|
+
*/
|
|
9903
|
+
api_key: string;
|
|
9896
9904
|
/**
|
|
9897
9905
|
* The stages of the workflow
|
|
9898
9906
|
*/
|
|
@@ -9941,12 +9949,15 @@ export type WorkflowAttributes = {
|
|
|
9941
9949
|
* via the `create.schema` link.
|
|
9942
9950
|
*/
|
|
9943
9951
|
export type WorkflowCreateSchema = {
|
|
9944
|
-
id?: WorkflowIdentity;
|
|
9945
9952
|
type?: WorkflowType;
|
|
9946
9953
|
/**
|
|
9947
9954
|
* The name of the workflow
|
|
9948
9955
|
*/
|
|
9949
9956
|
name: string;
|
|
9957
|
+
/**
|
|
9958
|
+
* Workflow API key
|
|
9959
|
+
*/
|
|
9960
|
+
api_key: string;
|
|
9950
9961
|
/**
|
|
9951
9962
|
* The stages of the workflow
|
|
9952
9963
|
*/
|
|
@@ -10001,6 +10012,10 @@ export type WorkflowUpdateSchema = {
|
|
|
10001
10012
|
* The name of the workflow
|
|
10002
10013
|
*/
|
|
10003
10014
|
name?: string;
|
|
10015
|
+
/**
|
|
10016
|
+
* Workflow API key
|
|
10017
|
+
*/
|
|
10018
|
+
api_key?: string;
|
|
10004
10019
|
/**
|
|
10005
10020
|
* The stages of the workflow
|
|
10006
10021
|
*/
|
|
@@ -18,7 +18,7 @@ export default class Workflow extends BaseResource {
|
|
|
18
18
|
return this.rawCreate(
|
|
19
19
|
Utils.serializeRequestBody<SchemaTypes.WorkflowCreateSchema>(body, {
|
|
20
20
|
type: 'workflow',
|
|
21
|
-
attributes: ['name', 'stages'],
|
|
21
|
+
attributes: ['name', 'api_key', 'stages'],
|
|
22
22
|
relationships: [],
|
|
23
23
|
}),
|
|
24
24
|
).then((body) =>
|
|
@@ -63,7 +63,7 @@ export default class Workflow extends BaseResource {
|
|
|
63
63
|
Utils.serializeRequestBody<SchemaTypes.WorkflowUpdateSchema>(body, {
|
|
64
64
|
id: Utils.toId(workflowId),
|
|
65
65
|
type: 'workflow',
|
|
66
|
-
attributes: ['name', 'stages'],
|
|
66
|
+
attributes: ['name', 'api_key', 'stages'],
|
|
67
67
|
relationships: [],
|
|
68
68
|
}),
|
|
69
69
|
).then((body) =>
|