@widgetic/api-sdk-ts 2.0.0 → 2.0.1
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/apis/TokensApi.d.ts +2 -0
- package/dist/apis/TokensApi.js +2 -0
- package/dist/esm/apis/TokensApi.js +2 -0
- package/dist/esm/models/GetOperationResponseData.js +3 -2
- package/dist/esm/models/GetOperationResponseDataMetadata.js +58 -0
- package/dist/esm/models/WidgetClarification.js +52 -0
- package/dist/esm/models/WidgetClarificationOption.js +51 -0
- package/dist/esm/models/WidgetClarificationQuestion.js +60 -0
- package/dist/esm/models/WidgetNextStep.js +67 -0
- package/dist/esm/models/WidgetPlan.js +61 -0
- package/dist/esm/models/WidgetPlanDecisions.js +68 -0
- package/dist/esm/models/WidgetPlanDecisionsAdaptersInner.js +47 -0
- package/dist/esm/models/WidgetPlanDecisionsLibrariesInner.js +51 -0
- package/dist/esm/models/WidgetPlanDecisionsResponsive.js +51 -0
- package/dist/esm/models/WidgetPlanTask.js +80 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/GetOperationResponseData.d.ts +3 -5
- package/dist/models/GetOperationResponseData.js +3 -2
- package/dist/models/GetOperationResponseDataMetadata.d.ts +65 -0
- package/dist/models/GetOperationResponseDataMetadata.js +66 -0
- package/dist/models/WidgetClarification.d.ts +45 -0
- package/dist/models/WidgetClarification.js +59 -0
- package/dist/models/WidgetClarificationOption.d.ts +44 -0
- package/dist/models/WidgetClarificationOption.js +58 -0
- package/dist/models/WidgetClarificationQuestion.d.ts +57 -0
- package/dist/models/WidgetClarificationQuestion.js +67 -0
- package/dist/models/WidgetNextStep.d.ts +63 -0
- package/dist/models/WidgetNextStep.js +75 -0
- package/dist/models/WidgetPlan.d.ts +58 -0
- package/dist/models/WidgetPlan.js +68 -0
- package/dist/models/WidgetPlanDecisions.d.ts +71 -0
- package/dist/models/WidgetPlanDecisions.js +75 -0
- package/dist/models/WidgetPlanDecisionsAdaptersInner.d.ts +38 -0
- package/dist/models/WidgetPlanDecisionsAdaptersInner.js +54 -0
- package/dist/models/WidgetPlanDecisionsLibrariesInner.d.ts +44 -0
- package/dist/models/WidgetPlanDecisionsLibrariesInner.js +58 -0
- package/dist/models/WidgetPlanDecisionsResponsive.d.ts +44 -0
- package/dist/models/WidgetPlanDecisionsResponsive.js +58 -0
- package/dist/models/WidgetPlanTask.d.ts +77 -0
- package/dist/models/WidgetPlanTask.js +88 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWidgetPlanDecisionsResponsive = instanceOfWidgetPlanDecisionsResponsive;
|
|
17
|
+
exports.WidgetPlanDecisionsResponsiveFromJSON = WidgetPlanDecisionsResponsiveFromJSON;
|
|
18
|
+
exports.WidgetPlanDecisionsResponsiveFromJSONTyped = WidgetPlanDecisionsResponsiveFromJSONTyped;
|
|
19
|
+
exports.WidgetPlanDecisionsResponsiveToJSON = WidgetPlanDecisionsResponsiveToJSON;
|
|
20
|
+
exports.WidgetPlanDecisionsResponsiveToJSONTyped = WidgetPlanDecisionsResponsiveToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WidgetPlanDecisionsResponsive interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWidgetPlanDecisionsResponsive(value) {
|
|
25
|
+
if (!('mobile' in value) || value['mobile'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('tablet' in value) || value['tablet'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('desktop' in value) || value['desktop'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function WidgetPlanDecisionsResponsiveFromJSON(json) {
|
|
34
|
+
return WidgetPlanDecisionsResponsiveFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function WidgetPlanDecisionsResponsiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'mobile': json['mobile'],
|
|
42
|
+
'tablet': json['tablet'],
|
|
43
|
+
'desktop': json['desktop'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function WidgetPlanDecisionsResponsiveToJSON(json) {
|
|
47
|
+
return WidgetPlanDecisionsResponsiveToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function WidgetPlanDecisionsResponsiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'mobile': value['mobile'],
|
|
55
|
+
'tablet': value['tablet'],
|
|
56
|
+
'desktop': value['desktop'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One step of the plan the person is shown.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WidgetPlanTask
|
|
16
|
+
*/
|
|
17
|
+
export interface WidgetPlanTask {
|
|
18
|
+
/**
|
|
19
|
+
* `t1`, `t2`, ... Stable for the life of the plan.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WidgetPlanTask
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The step, in the language the person wrote in. At most 90 characters.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WidgetPlanTask
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* What the step is about, so a client can pick an icon.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WidgetPlanTask
|
|
34
|
+
*/
|
|
35
|
+
kind: WidgetPlanTaskKindEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Where the step stands. At most one step is `in_progress`.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WidgetPlanTask
|
|
40
|
+
*/
|
|
41
|
+
status: WidgetPlanTaskStatusEnum;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const WidgetPlanTaskKindEnum: {
|
|
47
|
+
readonly Read: 'read';
|
|
48
|
+
readonly Layout: 'layout';
|
|
49
|
+
readonly Content: 'content';
|
|
50
|
+
readonly Style: 'style';
|
|
51
|
+
readonly Library: 'library';
|
|
52
|
+
readonly Adapter: 'adapter';
|
|
53
|
+
readonly Motion: 'motion';
|
|
54
|
+
readonly Behavior: 'behavior';
|
|
55
|
+
readonly Polish: 'polish';
|
|
56
|
+
readonly Check: 'check';
|
|
57
|
+
readonly Other: 'other';
|
|
58
|
+
};
|
|
59
|
+
export type WidgetPlanTaskKindEnum = typeof WidgetPlanTaskKindEnum[keyof typeof WidgetPlanTaskKindEnum];
|
|
60
|
+
/**
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export declare const WidgetPlanTaskStatusEnum: {
|
|
64
|
+
readonly Pending: 'pending';
|
|
65
|
+
readonly InProgress: 'in_progress';
|
|
66
|
+
readonly Done: 'done';
|
|
67
|
+
readonly Failed: 'failed';
|
|
68
|
+
};
|
|
69
|
+
export type WidgetPlanTaskStatusEnum = typeof WidgetPlanTaskStatusEnum[keyof typeof WidgetPlanTaskStatusEnum];
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the WidgetPlanTask interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfWidgetPlanTask(value: object): value is WidgetPlanTask;
|
|
74
|
+
export declare function WidgetPlanTaskFromJSON(json: any): WidgetPlanTask;
|
|
75
|
+
export declare function WidgetPlanTaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetPlanTask;
|
|
76
|
+
export declare function WidgetPlanTaskToJSON(json: any): WidgetPlanTask;
|
|
77
|
+
export declare function WidgetPlanTaskToJSONTyped(value?: WidgetPlanTask | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.WidgetPlanTaskStatusEnum = exports.WidgetPlanTaskKindEnum = void 0;
|
|
17
|
+
exports.instanceOfWidgetPlanTask = instanceOfWidgetPlanTask;
|
|
18
|
+
exports.WidgetPlanTaskFromJSON = WidgetPlanTaskFromJSON;
|
|
19
|
+
exports.WidgetPlanTaskFromJSONTyped = WidgetPlanTaskFromJSONTyped;
|
|
20
|
+
exports.WidgetPlanTaskToJSON = WidgetPlanTaskToJSON;
|
|
21
|
+
exports.WidgetPlanTaskToJSONTyped = WidgetPlanTaskToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WidgetPlanTaskKindEnum = {
|
|
26
|
+
Read: 'read',
|
|
27
|
+
Layout: 'layout',
|
|
28
|
+
Content: 'content',
|
|
29
|
+
Style: 'style',
|
|
30
|
+
Library: 'library',
|
|
31
|
+
Adapter: 'adapter',
|
|
32
|
+
Motion: 'motion',
|
|
33
|
+
Behavior: 'behavior',
|
|
34
|
+
Polish: 'polish',
|
|
35
|
+
Check: 'check',
|
|
36
|
+
Other: 'other'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.WidgetPlanTaskStatusEnum = {
|
|
42
|
+
Pending: 'pending',
|
|
43
|
+
InProgress: 'in_progress',
|
|
44
|
+
Done: 'done',
|
|
45
|
+
Failed: 'failed'
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the WidgetPlanTask interface.
|
|
49
|
+
*/
|
|
50
|
+
function instanceOfWidgetPlanTask(value) {
|
|
51
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
function WidgetPlanTaskFromJSON(json) {
|
|
62
|
+
return WidgetPlanTaskFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function WidgetPlanTaskFromJSONTyped(json, ignoreDiscriminator) {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'label': json['label'],
|
|
71
|
+
'kind': json['kind'],
|
|
72
|
+
'status': json['status'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function WidgetPlanTaskToJSON(json) {
|
|
76
|
+
return WidgetPlanTaskToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function WidgetPlanTaskToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'id': value['id'],
|
|
84
|
+
'label': value['label'],
|
|
85
|
+
'kind': value['kind'],
|
|
86
|
+
'status': value['status'],
|
|
87
|
+
};
|
|
88
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ export * from './GetManagedUsersByManagerIdResponse';
|
|
|
122
122
|
export * from './GetManagedUsersByManagerIdResponseData';
|
|
123
123
|
export * from './GetOperationResponse';
|
|
124
124
|
export * from './GetOperationResponseData';
|
|
125
|
+
export * from './GetOperationResponseDataMetadata';
|
|
125
126
|
export * from './GetPartnerBillingOverview200Response';
|
|
126
127
|
export * from './GetPartnerEntitlementsResponse';
|
|
127
128
|
export * from './GetPartnerEntitlementsResponseData';
|
|
@@ -312,6 +313,16 @@ export * from './ValidateCompositionContentResponseData';
|
|
|
312
313
|
export * from './ValidateToken200Response';
|
|
313
314
|
export * from './ValidateToken200ResponseData';
|
|
314
315
|
export * from './Widget';
|
|
316
|
+
export * from './WidgetClarification';
|
|
317
|
+
export * from './WidgetClarificationOption';
|
|
318
|
+
export * from './WidgetClarificationQuestion';
|
|
319
|
+
export * from './WidgetNextStep';
|
|
320
|
+
export * from './WidgetPlan';
|
|
321
|
+
export * from './WidgetPlanDecisions';
|
|
322
|
+
export * from './WidgetPlanDecisionsAdaptersInner';
|
|
323
|
+
export * from './WidgetPlanDecisionsLibrariesInner';
|
|
324
|
+
export * from './WidgetPlanDecisionsResponsive';
|
|
325
|
+
export * from './WidgetPlanTask';
|
|
315
326
|
export * from './Workflow';
|
|
316
327
|
export * from './WorkflowCompositionAction';
|
|
317
328
|
export * from './WorkflowCompositionField';
|
package/dist/models/index.js
CHANGED
|
@@ -140,6 +140,7 @@ __exportStar(require("./GetManagedUsersByManagerIdResponse"), exports);
|
|
|
140
140
|
__exportStar(require("./GetManagedUsersByManagerIdResponseData"), exports);
|
|
141
141
|
__exportStar(require("./GetOperationResponse"), exports);
|
|
142
142
|
__exportStar(require("./GetOperationResponseData"), exports);
|
|
143
|
+
__exportStar(require("./GetOperationResponseDataMetadata"), exports);
|
|
143
144
|
__exportStar(require("./GetPartnerBillingOverview200Response"), exports);
|
|
144
145
|
__exportStar(require("./GetPartnerEntitlementsResponse"), exports);
|
|
145
146
|
__exportStar(require("./GetPartnerEntitlementsResponseData"), exports);
|
|
@@ -330,6 +331,16 @@ __exportStar(require("./ValidateCompositionContentResponseData"), exports);
|
|
|
330
331
|
__exportStar(require("./ValidateToken200Response"), exports);
|
|
331
332
|
__exportStar(require("./ValidateToken200ResponseData"), exports);
|
|
332
333
|
__exportStar(require("./Widget"), exports);
|
|
334
|
+
__exportStar(require("./WidgetClarification"), exports);
|
|
335
|
+
__exportStar(require("./WidgetClarificationOption"), exports);
|
|
336
|
+
__exportStar(require("./WidgetClarificationQuestion"), exports);
|
|
337
|
+
__exportStar(require("./WidgetNextStep"), exports);
|
|
338
|
+
__exportStar(require("./WidgetPlan"), exports);
|
|
339
|
+
__exportStar(require("./WidgetPlanDecisions"), exports);
|
|
340
|
+
__exportStar(require("./WidgetPlanDecisionsAdaptersInner"), exports);
|
|
341
|
+
__exportStar(require("./WidgetPlanDecisionsLibrariesInner"), exports);
|
|
342
|
+
__exportStar(require("./WidgetPlanDecisionsResponsive"), exports);
|
|
343
|
+
__exportStar(require("./WidgetPlanTask"), exports);
|
|
333
344
|
__exportStar(require("./Workflow"), exports);
|
|
334
345
|
__exportStar(require("./WorkflowCompositionAction"), exports);
|
|
335
346
|
__exportStar(require("./WorkflowCompositionField"), exports);
|
package/dist/runtime.d.ts
CHANGED
|
@@ -24,9 +24,9 @@ export declare const DEFAULT_BASE_URL = "";
|
|
|
24
24
|
export declare const DEFAULT_API_VERSION = "";
|
|
25
25
|
export declare const BASE_PATH: string;
|
|
26
26
|
export declare const SDK_NAME = "@widgetic/api-sdk-ts";
|
|
27
|
-
export declare const SDK_VERSION = "2.0.
|
|
27
|
+
export declare const SDK_VERSION = "2.0.1";
|
|
28
28
|
export declare const SDK_VERSION_HEADER = "X-SDK-Version";
|
|
29
|
-
export declare const SDK_VERSION_HEADER_VALUE = "@widgetic/api-sdk-ts/2.0.
|
|
29
|
+
export declare const SDK_VERSION_HEADER_VALUE = "@widgetic/api-sdk-ts/2.0.1";
|
|
30
30
|
export interface ConfigurationParameters {
|
|
31
31
|
basePath?: string;
|
|
32
32
|
fetchApi?: FetchAPI;
|
package/dist/runtime.js
CHANGED
|
@@ -38,7 +38,7 @@ exports.BASE_PATH = "https://api.widgetic.com/v1".replace(/\/+$/, "");
|
|
|
38
38
|
// runs. The version is the one in this package's package.json: `scripts/deploy-sdk.sh` reads it and hands it to the
|
|
39
39
|
// generator as `npmVersion`, so the number a call reports is the number on npm.
|
|
40
40
|
exports.SDK_NAME = "@widgetic/api-sdk-ts";
|
|
41
|
-
exports.SDK_VERSION = "2.0.
|
|
41
|
+
exports.SDK_VERSION = "2.0.1";
|
|
42
42
|
exports.SDK_VERSION_HEADER = "X-SDK-Version";
|
|
43
43
|
exports.SDK_VERSION_HEADER_VALUE = `${exports.SDK_NAME}/${exports.SDK_VERSION}`;
|
|
44
44
|
class Configuration {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/api-sdk-ts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "TypeScript and JavaScript client for the public Widgetic API: the calls a Widgetic customer or partner can make with an API key (ESM and CommonJS).",
|
|
5
5
|
"author": "Widgetic",
|
|
6
6
|
"license": "MIT",
|