@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
package/dist/apis/TokensApi.d.ts
CHANGED
|
@@ -16,10 +16,12 @@ import type { ValidateToken200Response } from '../models/index';
|
|
|
16
16
|
*/
|
|
17
17
|
export declare class TokensApi extends runtime.BaseAPI {
|
|
18
18
|
/**
|
|
19
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
|
|
19
20
|
* Validate current authentication token
|
|
20
21
|
*/
|
|
21
22
|
validateTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateToken200Response>>;
|
|
22
23
|
/**
|
|
24
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
|
|
23
25
|
* Validate current authentication token
|
|
24
26
|
*/
|
|
25
27
|
validateToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateToken200Response>;
|
package/dist/apis/TokensApi.js
CHANGED
|
@@ -54,6 +54,7 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class TokensApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
|
|
57
58
|
* Validate current authentication token
|
|
58
59
|
*/
|
|
59
60
|
async validateTokenRaw(initOverrides) {
|
|
@@ -78,6 +79,7 @@ class TokensApi extends runtime.BaseAPI {
|
|
|
78
79
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ValidateToken200ResponseFromJSON)(jsonValue));
|
|
79
80
|
}
|
|
80
81
|
/**
|
|
82
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
|
|
81
83
|
* Validate current authentication token
|
|
82
84
|
*/
|
|
83
85
|
async validateToken(initOverrides) {
|
|
@@ -18,6 +18,7 @@ import { ValidateToken200ResponseFromJSON, } from '../models/index.js';
|
|
|
18
18
|
*/
|
|
19
19
|
export class TokensApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
|
|
21
22
|
* Validate current authentication token
|
|
22
23
|
*/
|
|
23
24
|
async validateTokenRaw(initOverrides) {
|
|
@@ -42,6 +43,7 @@ export class TokensApi extends runtime.BaseAPI {
|
|
|
42
43
|
return new runtime.JSONApiResponse(response, (jsonValue) => ValidateToken200ResponseFromJSON(jsonValue));
|
|
43
44
|
}
|
|
44
45
|
/**
|
|
46
|
+
* Describes the credential the request was made with: how it signs in (`tokenType`), what it may do (`scopes`) and the account it belongs to (`userId`). A credential that belongs to the platform itself, and not to a customer\'s account, is held to no scope: it is answered with `tokenType` `service_key`, `scopes` `[\"*:*\"]` and no `userId`.
|
|
45
47
|
* Validate current authentication token
|
|
46
48
|
*/
|
|
47
49
|
async validateToken(initOverrides) {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { GetOperationResponseDataMetadataFromJSON, GetOperationResponseDataMetadataToJSON, } from './GetOperationResponseDataMetadata.js';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
@@ -39,7 +40,7 @@ export function GetOperationResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
39
40
|
'type': json['type'] == null ? undefined : json['type'],
|
|
40
41
|
'status': json['status'] == null ? undefined : json['status'],
|
|
41
42
|
'progress': json['progress'] == null ? undefined : json['progress'],
|
|
42
|
-
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
43
|
+
'metadata': json['metadata'] == null ? undefined : GetOperationResponseDataMetadataFromJSON(json['metadata']),
|
|
43
44
|
'error': json['error'] == null ? undefined : json['error'],
|
|
44
45
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
45
46
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -57,7 +58,7 @@ export function GetOperationResponseDataToJSONTyped(value, ignoreDiscriminator =
|
|
|
57
58
|
'type': value['type'],
|
|
58
59
|
'status': value['status'],
|
|
59
60
|
'progress': value['progress'],
|
|
60
|
-
'metadata': value['metadata'],
|
|
61
|
+
'metadata': GetOperationResponseDataMetadataToJSON(value['metadata']),
|
|
61
62
|
'error': value['error'],
|
|
62
63
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
63
64
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { WidgetNextStepFromJSON, WidgetNextStepToJSON, } from './WidgetNextStep.js';
|
|
15
|
+
import { WidgetClarificationFromJSON, WidgetClarificationToJSON, } from './WidgetClarification.js';
|
|
16
|
+
import { WidgetPlanFromJSON, WidgetPlanToJSON, } from './WidgetPlan.js';
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const GetOperationResponseDataMetadataOutcomeEnum = {
|
|
21
|
+
NeedsAnswers: 'needs_answers'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetOperationResponseDataMetadata interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfGetOperationResponseDataMetadata(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function GetOperationResponseDataMetadataFromJSON(json) {
|
|
30
|
+
return GetOperationResponseDataMetadataFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function GetOperationResponseDataMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
...json,
|
|
38
|
+
'plan': json['plan'] == null ? undefined : WidgetPlanFromJSON(json['plan']),
|
|
39
|
+
'outcome': json['outcome'] == null ? undefined : json['outcome'],
|
|
40
|
+
'clarification': json['clarification'] == null ? undefined : WidgetClarificationFromJSON(json['clarification']),
|
|
41
|
+
'nextSteps': json['nextSteps'] == null ? undefined : (json['nextSteps'].map(WidgetNextStepFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function GetOperationResponseDataMetadataToJSON(json) {
|
|
45
|
+
return GetOperationResponseDataMetadataToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function GetOperationResponseDataMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
...value,
|
|
53
|
+
'plan': WidgetPlanToJSON(value['plan']),
|
|
54
|
+
'outcome': value['outcome'],
|
|
55
|
+
'clarification': WidgetClarificationToJSON(value['clarification']),
|
|
56
|
+
'nextSteps': value['nextSteps'] == null ? undefined : (value['nextSteps'].map(WidgetNextStepToJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { WidgetClarificationQuestionFromJSON, WidgetClarificationQuestionToJSON, } from './WidgetClarificationQuestion.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WidgetClarification interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWidgetClarification(value) {
|
|
19
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('questions' in value) || value['questions'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('filesRead' in value) || value['filesRead'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function WidgetClarificationFromJSON(json) {
|
|
28
|
+
return WidgetClarificationFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function WidgetClarificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'message': json['message'],
|
|
36
|
+
'questions': (json['questions'].map(WidgetClarificationQuestionFromJSON)),
|
|
37
|
+
'filesRead': json['filesRead'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function WidgetClarificationToJSON(json) {
|
|
41
|
+
return WidgetClarificationToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function WidgetClarificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value['message'],
|
|
49
|
+
'questions': (value['questions'].map(WidgetClarificationQuestionToJSON)),
|
|
50
|
+
'filesRead': value['filesRead'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the WidgetClarificationOption interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWidgetClarificationOption(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('recommended' in value) || value['recommended'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function WidgetClarificationOptionFromJSON(json) {
|
|
27
|
+
return WidgetClarificationOptionFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function WidgetClarificationOptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'label': json['label'],
|
|
36
|
+
'recommended': json['recommended'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function WidgetClarificationOptionToJSON(json) {
|
|
40
|
+
return WidgetClarificationOptionToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function WidgetClarificationOptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'label': value['label'],
|
|
49
|
+
'recommended': value['recommended'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { WidgetClarificationOptionFromJSON, WidgetClarificationOptionToJSON, } from './WidgetClarificationOption.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WidgetClarificationQuestion interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWidgetClarificationQuestion(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('question' in value) || value['question'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('recommendedWord' in value) || value['recommendedWord'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('options' in value) || value['options'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('allowOther' in value) || value['allowOther'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function WidgetClarificationQuestionFromJSON(json) {
|
|
32
|
+
return WidgetClarificationQuestionFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function WidgetClarificationQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'question': json['question'],
|
|
41
|
+
'recommendedWord': json['recommendedWord'],
|
|
42
|
+
'options': (json['options'].map(WidgetClarificationOptionFromJSON)),
|
|
43
|
+
'allowOther': json['allowOther'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function WidgetClarificationQuestionToJSON(json) {
|
|
47
|
+
return WidgetClarificationQuestionToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function WidgetClarificationQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'question': value['question'],
|
|
56
|
+
'recommendedWord': value['recommendedWord'],
|
|
57
|
+
'options': (value['options'].map(WidgetClarificationOptionToJSON)),
|
|
58
|
+
'allowOther': value['allowOther'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const WidgetNextStepKindEnum = {
|
|
18
|
+
Content: 'content',
|
|
19
|
+
Style: 'style',
|
|
20
|
+
Layout: 'layout',
|
|
21
|
+
Behavior: 'behavior',
|
|
22
|
+
Animation: 'animation',
|
|
23
|
+
Data: 'data',
|
|
24
|
+
Other: 'other'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the WidgetNextStep interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfWidgetNextStep(value) {
|
|
30
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('recommended' in value) || value['recommended'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function WidgetNextStepFromJSON(json) {
|
|
41
|
+
return WidgetNextStepFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function WidgetNextStepFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'label': json['label'],
|
|
50
|
+
'kind': json['kind'],
|
|
51
|
+
'recommended': json['recommended'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function WidgetNextStepToJSON(json) {
|
|
55
|
+
return WidgetNextStepToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function WidgetNextStepToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'label': value['label'],
|
|
64
|
+
'kind': value['kind'],
|
|
65
|
+
'recommended': value['recommended'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { WidgetPlanDecisionsFromJSON, WidgetPlanDecisionsToJSON, } from './WidgetPlanDecisions.js';
|
|
15
|
+
import { WidgetPlanTaskFromJSON, WidgetPlanTaskToJSON, } from './WidgetPlanTask.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the WidgetPlan interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfWidgetPlan(value) {
|
|
20
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('tasks' in value) || value['tasks'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('decisions' in value) || value['decisions'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('completed' in value) || value['completed'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('activeIndex' in value) || value['activeIndex'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function WidgetPlanFromJSON(json) {
|
|
33
|
+
return WidgetPlanFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function WidgetPlanFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'title': json['title'],
|
|
41
|
+
'tasks': (json['tasks'].map(WidgetPlanTaskFromJSON)),
|
|
42
|
+
'decisions': WidgetPlanDecisionsFromJSON(json['decisions']),
|
|
43
|
+
'completed': json['completed'],
|
|
44
|
+
'activeIndex': json['activeIndex'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function WidgetPlanToJSON(json) {
|
|
48
|
+
return WidgetPlanToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function WidgetPlanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'title': value['title'],
|
|
56
|
+
'tasks': (value['tasks'].map(WidgetPlanTaskToJSON)),
|
|
57
|
+
'decisions': WidgetPlanDecisionsToJSON(value['decisions']),
|
|
58
|
+
'completed': value['completed'],
|
|
59
|
+
'activeIndex': value['activeIndex'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { WidgetPlanDecisionsResponsiveFromJSON, WidgetPlanDecisionsResponsiveToJSON, } from './WidgetPlanDecisionsResponsive.js';
|
|
15
|
+
import { WidgetPlanDecisionsLibrariesInnerFromJSON, WidgetPlanDecisionsLibrariesInnerToJSON, } from './WidgetPlanDecisionsLibrariesInner.js';
|
|
16
|
+
import { WidgetPlanDecisionsAdaptersInnerFromJSON, WidgetPlanDecisionsAdaptersInnerToJSON, } from './WidgetPlanDecisionsAdaptersInner.js';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the WidgetPlanDecisions interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfWidgetPlanDecisions(value) {
|
|
21
|
+
if (!('libraries' in value) || value['libraries'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('adapters' in value) || value['adapters'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('look' in value) || value['look'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('motion' in value) || value['motion'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('improvements' in value) || value['improvements'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('notes' in value) || value['notes'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function WidgetPlanDecisionsFromJSON(json) {
|
|
36
|
+
return WidgetPlanDecisionsFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function WidgetPlanDecisionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'libraries': (json['libraries'].map(WidgetPlanDecisionsLibrariesInnerFromJSON)),
|
|
44
|
+
'adapters': (json['adapters'].map(WidgetPlanDecisionsAdaptersInnerFromJSON)),
|
|
45
|
+
'look': json['look'],
|
|
46
|
+
'motion': json['motion'],
|
|
47
|
+
'improvements': json['improvements'],
|
|
48
|
+
'notes': json['notes'],
|
|
49
|
+
'responsive': json['responsive'] == null ? undefined : WidgetPlanDecisionsResponsiveFromJSON(json['responsive']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function WidgetPlanDecisionsToJSON(json) {
|
|
53
|
+
return WidgetPlanDecisionsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function WidgetPlanDecisionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'libraries': (value['libraries'].map(WidgetPlanDecisionsLibrariesInnerToJSON)),
|
|
61
|
+
'adapters': (value['adapters'].map(WidgetPlanDecisionsAdaptersInnerToJSON)),
|
|
62
|
+
'look': value['look'],
|
|
63
|
+
'motion': value['motion'],
|
|
64
|
+
'improvements': value['improvements'],
|
|
65
|
+
'notes': value['notes'],
|
|
66
|
+
'responsive': WidgetPlanDecisionsResponsiveToJSON(value['responsive']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the WidgetPlanDecisionsAdaptersInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWidgetPlanDecisionsAdaptersInner(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function WidgetPlanDecisionsAdaptersInnerFromJSON(json) {
|
|
25
|
+
return WidgetPlanDecisionsAdaptersInnerFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function WidgetPlanDecisionsAdaptersInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'id': json['id'],
|
|
33
|
+
'label': json['label'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function WidgetPlanDecisionsAdaptersInnerToJSON(json) {
|
|
37
|
+
return WidgetPlanDecisionsAdaptersInnerToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function WidgetPlanDecisionsAdaptersInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': value['id'],
|
|
45
|
+
'label': value['label'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the WidgetPlanDecisionsLibrariesInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWidgetPlanDecisionsLibrariesInner(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function WidgetPlanDecisionsLibrariesInnerFromJSON(json) {
|
|
27
|
+
return WidgetPlanDecisionsLibrariesInnerFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function WidgetPlanDecisionsLibrariesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'label': json['label'],
|
|
36
|
+
'reason': json['reason'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function WidgetPlanDecisionsLibrariesInnerToJSON(json) {
|
|
40
|
+
return WidgetPlanDecisionsLibrariesInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function WidgetPlanDecisionsLibrariesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'label': value['label'],
|
|
49
|
+
'reason': value['reason'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the WidgetPlanDecisionsResponsive interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWidgetPlanDecisionsResponsive(value) {
|
|
18
|
+
if (!('mobile' in value) || value['mobile'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('tablet' in value) || value['tablet'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('desktop' in value) || value['desktop'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function WidgetPlanDecisionsResponsiveFromJSON(json) {
|
|
27
|
+
return WidgetPlanDecisionsResponsiveFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function WidgetPlanDecisionsResponsiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'mobile': json['mobile'],
|
|
35
|
+
'tablet': json['tablet'],
|
|
36
|
+
'desktop': json['desktop'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function WidgetPlanDecisionsResponsiveToJSON(json) {
|
|
40
|
+
return WidgetPlanDecisionsResponsiveToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function WidgetPlanDecisionsResponsiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'mobile': value['mobile'],
|
|
48
|
+
'tablet': value['tablet'],
|
|
49
|
+
'desktop': value['desktop'],
|
|
50
|
+
};
|
|
51
|
+
}
|