@widgetic/api-sdk-ts 1.11.111 → 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/README.md +1 -1
- package/dist/apis/BrandKitApi.d.ts +40 -40
- package/dist/apis/BrandKitApi.js +40 -40
- package/dist/apis/CanvasesApi.d.ts +15 -15
- package/dist/apis/CompositionsApi.d.ts +255 -155
- package/dist/apis/CompositionsApi.js +333 -133
- package/dist/apis/CreditsApi.d.ts +7 -7
- package/dist/apis/CreditsApi.js +1 -1
- package/dist/apis/EntitlementsApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +2 -2
- package/dist/apis/ManagedUsersApi.d.ts +97 -63
- package/dist/apis/ManagedUsersApi.js +106 -39
- package/dist/apis/OperationsApi.d.ts +4 -4
- package/dist/apis/OperationsApi.js +5 -5
- package/dist/apis/PartnersApi.d.ts +125 -125
- package/dist/apis/PartnersApi.js +11 -11
- package/dist/apis/PublicEmbedApi.d.ts +42 -42
- package/dist/apis/PublicEmbedApi.js +29 -29
- package/dist/apis/TokensApi.d.ts +2 -0
- package/dist/apis/TokensApi.js +2 -0
- package/dist/apis/UploadsApi.d.ts +38 -38
- package/dist/apis/UploadsApi.js +60 -60
- package/dist/apis/UsersApi.d.ts +40 -40
- package/dist/apis/UsersApi.js +4 -4
- package/dist/apis/WidgetsApi.d.ts +23 -23
- package/dist/apis/WidgetsApi.js +36 -36
- package/dist/apis/WorkflowsApi.d.ts +85 -127
- package/dist/apis/WorkflowsApi.js +82 -192
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -2
- package/dist/esm/apis/BrandKitApi.js +39 -39
- package/dist/esm/apis/CompositionsApi.js +333 -133
- package/dist/esm/apis/CreditsApi.js +2 -2
- package/dist/esm/apis/InvoicesApi.js +1 -1
- package/dist/esm/apis/ManagedUsersApi.js +106 -39
- package/dist/esm/apis/OperationsApi.js +6 -6
- package/dist/esm/apis/PartnersApi.js +12 -12
- package/dist/esm/apis/PublicEmbedApi.js +30 -30
- package/dist/esm/apis/TokensApi.js +2 -0
- package/dist/esm/apis/UploadsApi.js +60 -60
- package/dist/esm/apis/UsersApi.js +5 -5
- package/dist/esm/apis/WidgetsApi.js +37 -37
- package/dist/esm/apis/WorkflowsApi.js +82 -192
- package/dist/esm/apis/index.js +0 -2
- package/dist/esm/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +8 -8
- package/dist/esm/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +8 -8
- package/dist/esm/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +8 -8
- package/dist/esm/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +8 -8
- package/dist/esm/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +8 -8
- package/dist/esm/models/{CreateCompositionDatabaseRecord201Response.js → CompositionDatabaseRecordResponse.js} +8 -8
- package/dist/esm/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +8 -8
- package/dist/esm/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +11 -11
- package/dist/esm/models/{UploadsIdDelete200ResponseData.js → DeleteUpload200ResponseData.js} +8 -8
- package/dist/esm/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +8 -8
- package/dist/esm/models/GetOperationResponse.js +51 -0
- package/dist/esm/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +12 -11
- package/dist/esm/models/GetOperationResponseDataMetadata.js +58 -0
- package/dist/esm/models/{UploadsGet200Response.js → ListUploads200Response.js} +8 -8
- package/dist/esm/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +8 -8
- package/dist/esm/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +8 -8
- package/dist/esm/models/PublicWorkflowEventsRequestEventsInner.js +11 -0
- package/dist/esm/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +8 -8
- 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/{CreateWorkspaceWorkflowFromPreset201Response.js → WorkflowDetailResponse.js} +8 -8
- package/dist/esm/models/WorkflowFailureReason.js +49 -0
- package/dist/esm/models/WorkflowFailureReasonCounter.js +52 -0
- package/dist/esm/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +8 -8
- package/dist/esm/models/WorkflowStats.js +3 -0
- package/dist/esm/models/index.js +31 -19
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditTransactionListResponse.d.ts +46 -0
- package/dist/models/{GetPartnerCreditTransactions200Response.js → AccountCreditTransactionListResponse.js} +13 -13
- package/dist/models/AdapterConnectionListResponse.d.ts +46 -0
- package/dist/models/{GetUserAdapterConnections200Response.js → AdapterConnectionListResponse.js} +13 -13
- package/dist/models/AdapterConnectionRemovalResponse.d.ts +46 -0
- package/dist/models/{RemoveUserAdapterConnection200Response.js → AdapterConnectionRemovalResponse.js} +13 -13
- package/dist/models/AdapterConnectionResponse.d.ts +46 -0
- package/dist/models/{SetUserAdapterConnection200Response.js → AdapterConnectionResponse.js} +13 -13
- package/dist/models/AiAnswersKnowledgeDocumentResponse.d.ts +46 -0
- package/dist/models/{AddAiAnswersKnowledgeDocument201Response.js → AiAnswersKnowledgeDocumentResponse.js} +13 -13
- package/dist/models/CompositionDatabaseRecordResponse.d.ts +48 -0
- package/dist/models/CompositionDatabaseRecordResponse.js +57 -0
- package/dist/models/ContentItemWriteResultResponse.d.ts +46 -0
- package/dist/models/{CreateCompositionContentItem201Response.js → ContentItemWriteResultResponse.js} +13 -13
- package/dist/models/DeleteUpload200Response.d.ts +46 -0
- package/dist/models/{OperationsIdGetResponse.js → DeleteUpload200Response.js} +16 -16
- package/dist/models/DeleteUpload200ResponseData.d.ts +32 -0
- package/dist/models/DeleteUpload200ResponseData.js +48 -0
- package/dist/models/DesignDefaultsResponse.d.ts +46 -0
- package/dist/models/{GetPartnerDesignDefaults200Response.js → DesignDefaultsResponse.js} +13 -13
- package/dist/models/GetOperationResponse.d.ts +46 -0
- package/dist/models/GetOperationResponse.js +58 -0
- package/dist/models/GetOperationResponseData.d.ts +86 -0
- package/dist/models/{OperationsIdGetResponseData.js → GetOperationResponseData.js} +18 -17
- package/dist/models/GetOperationResponseDataMetadata.d.ts +65 -0
- package/dist/models/GetOperationResponseDataMetadata.js +66 -0
- package/dist/models/ListUploads200Response.d.ts +46 -0
- package/dist/models/{UploadsGet200Response.js → ListUploads200Response.js} +13 -13
- package/dist/models/ManagedUserLimitsResponse.d.ts +46 -0
- package/dist/models/{GetManagedUserLimits200Response.js → ManagedUserLimitsResponse.js} +13 -13
- package/dist/models/ManagedUserRemovalResponse.d.ts +46 -0
- package/dist/models/{DeleteManagedUser200Response.js → ManagedUserRemovalResponse.js} +13 -13
- package/dist/models/PublicWorkflowEventsRequestEventsInner.d.ts +21 -0
- package/dist/models/PublicWorkflowEventsRequestEventsInner.js +12 -1
- package/dist/models/PublicWorkflowResponse.d.ts +46 -0
- package/dist/models/{GetPublicWorkflow200Response.js → PublicWorkflowResponse.js} +13 -13
- package/dist/models/Upload.d.ts +1 -1
- package/dist/models/UploadLimits.d.ts +3 -3
- 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/WorkflowDetailResponse.d.ts +46 -0
- package/dist/models/WorkflowDetailResponse.js +58 -0
- package/dist/models/WorkflowFailureReason.d.ts +31 -0
- package/dist/models/WorkflowFailureReason.js +57 -0
- package/dist/models/WorkflowFailureReasonCounter.d.ts +45 -0
- package/dist/models/WorkflowFailureReasonCounter.js +59 -0
- package/dist/models/WorkflowResponse.d.ts +46 -0
- package/dist/models/{SaveWorkspaceWorkflow200Response.js → WorkflowResponse.js} +13 -13
- package/dist/models/WorkflowStats.d.ts +16 -1
- package/dist/models/WorkflowStats.js +3 -0
- package/dist/models/index.d.ts +31 -19
- package/dist/models/index.js +31 -19
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/apis/PartnerApi.d.ts +0 -2707
- package/dist/apis/PartnerApi.js +0 -7073
- package/dist/apis/WorkspacesApi.d.ts +0 -352
- package/dist/apis/WorkspacesApi.js +0 -946
- package/dist/esm/apis/PartnerApi.js +0 -7036
- package/dist/esm/apis/WorkspacesApi.js +0 -909
- package/dist/esm/models/CreateCompositionFromWidget201Response.js +0 -51
- package/dist/esm/models/UploadsIdDelete200Response.js +0 -51
- package/dist/models/AddAiAnswersKnowledgeDocument201Response.d.ts +0 -46
- package/dist/models/CreateCompositionContentItem201Response.d.ts +0 -46
- package/dist/models/CreateCompositionDatabaseRecord201Response.d.ts +0 -48
- package/dist/models/CreateCompositionDatabaseRecord201Response.js +0 -57
- package/dist/models/CreateCompositionFromWidget201Response.d.ts +0 -46
- package/dist/models/CreateCompositionFromWidget201Response.js +0 -58
- package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.d.ts +0 -46
- package/dist/models/CreateWorkspaceWorkflowFromPreset201Response.js +0 -58
- package/dist/models/DeleteManagedUser200Response.d.ts +0 -46
- package/dist/models/GetManagedUserLimits200Response.d.ts +0 -46
- package/dist/models/GetPartnerCreditTransactions200Response.d.ts +0 -46
- package/dist/models/GetPartnerDesignDefaults200Response.d.ts +0 -46
- package/dist/models/GetPublicWorkflow200Response.d.ts +0 -46
- package/dist/models/GetUserAdapterConnections200Response.d.ts +0 -46
- package/dist/models/OperationsIdGetResponse.d.ts +0 -46
- package/dist/models/OperationsIdGetResponseData.d.ts +0 -88
- package/dist/models/RemoveUserAdapterConnection200Response.d.ts +0 -46
- package/dist/models/SaveWorkspaceWorkflow200Response.d.ts +0 -46
- package/dist/models/SetUserAdapterConnection200Response.d.ts +0 -46
- package/dist/models/UploadsGet200Response.d.ts +0 -46
- package/dist/models/UploadsIdDelete200Response.d.ts +0 -46
- package/dist/models/UploadsIdDelete200Response.js +0 -58
- package/dist/models/UploadsIdDelete200ResponseData.d.ts +0 -32
- package/dist/models/UploadsIdDelete200ResponseData.js +0 -48
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import type { ManagedUserRemoval } from './ManagedUserRemoval';
|
|
13
|
+
import type { ResponseMeta } from './ResponseMeta';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ManagedUserRemovalResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface ManagedUserRemovalResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof ManagedUserRemovalResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ManagedUserRemoval}
|
|
29
|
+
* @memberof ManagedUserRemovalResponse
|
|
30
|
+
*/
|
|
31
|
+
data: ManagedUserRemoval;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ResponseMeta}
|
|
35
|
+
* @memberof ManagedUserRemovalResponse
|
|
36
|
+
*/
|
|
37
|
+
meta?: ResponseMeta;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ManagedUserRemovalResponse interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfManagedUserRemovalResponse(value: object): value is ManagedUserRemovalResponse;
|
|
43
|
+
export declare function ManagedUserRemovalResponseFromJSON(json: any): ManagedUserRemovalResponse;
|
|
44
|
+
export declare function ManagedUserRemovalResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagedUserRemovalResponse;
|
|
45
|
+
export declare function ManagedUserRemovalResponseToJSON(json: any): ManagedUserRemovalResponse;
|
|
46
|
+
export declare function ManagedUserRemovalResponseToJSONTyped(value?: ManagedUserRemovalResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,27 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfManagedUserRemovalResponse = instanceOfManagedUserRemovalResponse;
|
|
17
|
+
exports.ManagedUserRemovalResponseFromJSON = ManagedUserRemovalResponseFromJSON;
|
|
18
|
+
exports.ManagedUserRemovalResponseFromJSONTyped = ManagedUserRemovalResponseFromJSONTyped;
|
|
19
|
+
exports.ManagedUserRemovalResponseToJSON = ManagedUserRemovalResponseToJSON;
|
|
20
|
+
exports.ManagedUserRemovalResponseToJSONTyped = ManagedUserRemovalResponseToJSONTyped;
|
|
21
21
|
const ManagedUserRemoval_1 = require("./ManagedUserRemoval");
|
|
22
22
|
const ResponseMeta_1 = require("./ResponseMeta");
|
|
23
23
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the ManagedUserRemovalResponse interface.
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
26
|
+
function instanceOfManagedUserRemovalResponse(value) {
|
|
27
27
|
if (!('success' in value) || value['success'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('data' in value) || value['data'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function ManagedUserRemovalResponseFromJSON(json) {
|
|
34
|
+
return ManagedUserRemovalResponseFromJSONTyped(json, false);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function ManagedUserRemovalResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
37
|
if (json == null) {
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
@@ -43,10 +43,10 @@ function DeleteManagedUser200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'meta': json['meta'] == null ? undefined : (0, ResponseMeta_1.ResponseMetaFromJSON)(json['meta']),
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function ManagedUserRemovalResponseToJSON(json) {
|
|
47
|
+
return ManagedUserRemovalResponseToJSONTyped(json, false);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ManagedUserRemovalResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
50
|
if (value == null) {
|
|
51
51
|
return value;
|
|
52
52
|
}
|
|
@@ -33,6 +33,17 @@ export interface PublicWorkflowEventsRequestEventsInner {
|
|
|
33
33
|
* @memberof PublicWorkflowEventsRequestEventsInner
|
|
34
34
|
*/
|
|
35
35
|
c?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Only on an `f` event: why moving the visitor on failed. `t` the composition did not appear in time,
|
|
38
|
+
* `e` the widget in it reported an error, `b` the composition could not be built, `o` another reason (a
|
|
39
|
+
* step was already on its way, or the page was going away). Left out by an embed that does not say why;
|
|
40
|
+
* a letter this server does not know is read as left out, and the failure is still counted. On an `n` or
|
|
41
|
+
* an `e` event it is ignored. Never a message: one letter, so that nothing a visitor typed can ride on it.
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PublicWorkflowEventsRequestEventsInner
|
|
45
|
+
*/
|
|
46
|
+
r?: PublicWorkflowEventsRequestEventsInnerREnum;
|
|
36
47
|
}
|
|
37
48
|
/**
|
|
38
49
|
* @export
|
|
@@ -43,6 +54,16 @@ export declare const PublicWorkflowEventsRequestEventsInnerKEnum: {
|
|
|
43
54
|
readonly F: 'f';
|
|
44
55
|
};
|
|
45
56
|
export type PublicWorkflowEventsRequestEventsInnerKEnum = typeof PublicWorkflowEventsRequestEventsInnerKEnum[keyof typeof PublicWorkflowEventsRequestEventsInnerKEnum];
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const PublicWorkflowEventsRequestEventsInnerREnum: {
|
|
61
|
+
readonly T: 't';
|
|
62
|
+
readonly E: 'e';
|
|
63
|
+
readonly B: 'b';
|
|
64
|
+
readonly O: 'o';
|
|
65
|
+
};
|
|
66
|
+
export type PublicWorkflowEventsRequestEventsInnerREnum = typeof PublicWorkflowEventsRequestEventsInnerREnum[keyof typeof PublicWorkflowEventsRequestEventsInnerREnum];
|
|
46
67
|
/**
|
|
47
68
|
* Check if a given object implements the PublicWorkflowEventsRequestEventsInner interface.
|
|
48
69
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PublicWorkflowEventsRequestEventsInnerKEnum = void 0;
|
|
16
|
+
exports.PublicWorkflowEventsRequestEventsInnerREnum = exports.PublicWorkflowEventsRequestEventsInnerKEnum = void 0;
|
|
17
17
|
exports.instanceOfPublicWorkflowEventsRequestEventsInner = instanceOfPublicWorkflowEventsRequestEventsInner;
|
|
18
18
|
exports.PublicWorkflowEventsRequestEventsInnerFromJSON = PublicWorkflowEventsRequestEventsInnerFromJSON;
|
|
19
19
|
exports.PublicWorkflowEventsRequestEventsInnerFromJSONTyped = PublicWorkflowEventsRequestEventsInnerFromJSONTyped;
|
|
@@ -27,6 +27,15 @@ exports.PublicWorkflowEventsRequestEventsInnerKEnum = {
|
|
|
27
27
|
E: 'e',
|
|
28
28
|
F: 'f'
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.PublicWorkflowEventsRequestEventsInnerREnum = {
|
|
34
|
+
T: 't',
|
|
35
|
+
E: 'e',
|
|
36
|
+
B: 'b',
|
|
37
|
+
O: 'o'
|
|
38
|
+
};
|
|
30
39
|
/**
|
|
31
40
|
* Check if a given object implements the PublicWorkflowEventsRequestEventsInner interface.
|
|
32
41
|
*/
|
|
@@ -48,6 +57,7 @@ function PublicWorkflowEventsRequestEventsInnerFromJSONTyped(json, ignoreDiscrim
|
|
|
48
57
|
'k': json['k'],
|
|
49
58
|
'id': json['id'],
|
|
50
59
|
'c': json['c'] == null ? undefined : json['c'],
|
|
60
|
+
'r': json['r'] == null ? undefined : json['r'],
|
|
51
61
|
};
|
|
52
62
|
}
|
|
53
63
|
function PublicWorkflowEventsRequestEventsInnerToJSON(json) {
|
|
@@ -61,5 +71,6 @@ function PublicWorkflowEventsRequestEventsInnerToJSONTyped(value, ignoreDiscrimi
|
|
|
61
71
|
'k': value['k'],
|
|
62
72
|
'id': value['id'],
|
|
63
73
|
'c': value['c'],
|
|
74
|
+
'r': value['r'],
|
|
64
75
|
};
|
|
65
76
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import type { PublicWorkflow } from './PublicWorkflow';
|
|
13
|
+
import type { ResponseMeta } from './ResponseMeta';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PublicWorkflowResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PublicWorkflowResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof PublicWorkflowResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PublicWorkflow}
|
|
29
|
+
* @memberof PublicWorkflowResponse
|
|
30
|
+
*/
|
|
31
|
+
data: PublicWorkflow;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ResponseMeta}
|
|
35
|
+
* @memberof PublicWorkflowResponse
|
|
36
|
+
*/
|
|
37
|
+
meta?: ResponseMeta;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PublicWorkflowResponse interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfPublicWorkflowResponse(value: object): value is PublicWorkflowResponse;
|
|
43
|
+
export declare function PublicWorkflowResponseFromJSON(json: any): PublicWorkflowResponse;
|
|
44
|
+
export declare function PublicWorkflowResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicWorkflowResponse;
|
|
45
|
+
export declare function PublicWorkflowResponseToJSON(json: any): PublicWorkflowResponse;
|
|
46
|
+
export declare function PublicWorkflowResponseToJSONTyped(value?: PublicWorkflowResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,27 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfPublicWorkflowResponse = instanceOfPublicWorkflowResponse;
|
|
17
|
+
exports.PublicWorkflowResponseFromJSON = PublicWorkflowResponseFromJSON;
|
|
18
|
+
exports.PublicWorkflowResponseFromJSONTyped = PublicWorkflowResponseFromJSONTyped;
|
|
19
|
+
exports.PublicWorkflowResponseToJSON = PublicWorkflowResponseToJSON;
|
|
20
|
+
exports.PublicWorkflowResponseToJSONTyped = PublicWorkflowResponseToJSONTyped;
|
|
21
21
|
const PublicWorkflow_1 = require("./PublicWorkflow");
|
|
22
22
|
const ResponseMeta_1 = require("./ResponseMeta");
|
|
23
23
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the PublicWorkflowResponse interface.
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
26
|
+
function instanceOfPublicWorkflowResponse(value) {
|
|
27
27
|
if (!('success' in value) || value['success'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('data' in value) || value['data'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function PublicWorkflowResponseFromJSON(json) {
|
|
34
|
+
return PublicWorkflowResponseFromJSONTyped(json, false);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function PublicWorkflowResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
37
|
if (json == null) {
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
@@ -43,10 +43,10 @@ function GetPublicWorkflow200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'meta': json['meta'] == null ? undefined : (0, ResponseMeta_1.ResponseMetaFromJSON)(json['meta']),
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function PublicWorkflowResponseToJSON(json) {
|
|
47
|
+
return PublicWorkflowResponseToJSONTyped(json, false);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function PublicWorkflowResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
50
|
if (value == null) {
|
|
51
51
|
return value;
|
|
52
52
|
}
|
package/dist/models/Upload.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export interface Upload {
|
|
|
88
88
|
*/
|
|
89
89
|
conversation_id?: string | null;
|
|
90
90
|
/**
|
|
91
|
-
* The managed user the file was uploaded for, or null when it is the account's own. List one managed user's files with the `managed_user_id` or `managed_user_external_id` query parameter of `
|
|
91
|
+
* The managed user the file was uploaded for, or null when it is the account's own. List one managed user's files with the `managed_user_id` or `managed_user_external_id` query parameter of `listUploads`.
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof Upload
|
|
94
94
|
*/
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UploadLimits {
|
|
18
18
|
/**
|
|
19
|
-
* The largest file `
|
|
19
|
+
* The largest file `uploadFile` takes in one request, in bytes. The same for every account.
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof UploadLimits
|
|
22
22
|
*/
|
|
23
23
|
multipart_max_bytes?: number;
|
|
24
24
|
/**
|
|
25
|
-
* The file types `
|
|
25
|
+
* The file types `uploadFile` takes for media (`content-property` uploads)
|
|
26
26
|
* @type {Array<string>}
|
|
27
27
|
* @memberof UploadLimits
|
|
28
28
|
*/
|
|
29
29
|
multipart_mime_types?: Array<string>;
|
|
30
30
|
/**
|
|
31
|
-
* Whether resumable uploads are switched on. They need a signed-in session; an API key uses `
|
|
31
|
+
* Whether resumable uploads are switched on. They need a signed-in session; an API key uses `uploadFile`.
|
|
32
32
|
* @type {boolean}
|
|
33
33
|
* @memberof UploadLimits
|
|
34
34
|
*/
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import type { WidgetClarificationQuestion } from './WidgetClarificationQuestion';
|
|
13
|
+
/**
|
|
14
|
+
* The card of questions the assistant puts to the person before building, in `metadata.clarification` of an operation that completed with `metadata.outcome` `needs_answers`. Nothing was built and the credit was returned. The same words are saved in the chat as a plain-text assistant message.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WidgetClarification
|
|
17
|
+
*/
|
|
18
|
+
export interface WidgetClarification {
|
|
19
|
+
/**
|
|
20
|
+
* The sentence that introduces the card.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WidgetClarification
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<WidgetClarificationQuestion>}
|
|
28
|
+
* @memberof WidgetClarification
|
|
29
|
+
*/
|
|
30
|
+
questions: Array<WidgetClarificationQuestion>;
|
|
31
|
+
/**
|
|
32
|
+
* The paths of the widget's files the questions were judged against, for a "Read N files" row.
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof WidgetClarification
|
|
35
|
+
*/
|
|
36
|
+
filesRead: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the WidgetClarification interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfWidgetClarification(value: object): value is WidgetClarification;
|
|
42
|
+
export declare function WidgetClarificationFromJSON(json: any): WidgetClarification;
|
|
43
|
+
export declare function WidgetClarificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetClarification;
|
|
44
|
+
export declare function WidgetClarificationToJSON(json: any): WidgetClarification;
|
|
45
|
+
export declare function WidgetClarificationToJSONTyped(value?: WidgetClarification | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfWidgetClarification = instanceOfWidgetClarification;
|
|
17
|
+
exports.WidgetClarificationFromJSON = WidgetClarificationFromJSON;
|
|
18
|
+
exports.WidgetClarificationFromJSONTyped = WidgetClarificationFromJSONTyped;
|
|
19
|
+
exports.WidgetClarificationToJSON = WidgetClarificationToJSON;
|
|
20
|
+
exports.WidgetClarificationToJSONTyped = WidgetClarificationToJSONTyped;
|
|
21
|
+
const WidgetClarificationQuestion_1 = require("./WidgetClarificationQuestion");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WidgetClarification interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWidgetClarification(value) {
|
|
26
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('questions' in value) || value['questions'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('filesRead' in value) || value['filesRead'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function WidgetClarificationFromJSON(json) {
|
|
35
|
+
return WidgetClarificationFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function WidgetClarificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'message': json['message'],
|
|
43
|
+
'questions': (json['questions'].map(WidgetClarificationQuestion_1.WidgetClarificationQuestionFromJSON)),
|
|
44
|
+
'filesRead': json['filesRead'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function WidgetClarificationToJSON(json) {
|
|
48
|
+
return WidgetClarificationToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function WidgetClarificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'message': value['message'],
|
|
56
|
+
'questions': (value['questions'].map(WidgetClarificationQuestion_1.WidgetClarificationQuestionToJSON)),
|
|
57
|
+
'filesRead': value['filesRead'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WidgetClarificationOption
|
|
16
|
+
*/
|
|
17
|
+
export interface WidgetClarificationOption {
|
|
18
|
+
/**
|
|
19
|
+
* `q1o1`, `q1o2`, ... Stable within the card.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WidgetClarificationOption
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The option text, at most 60 characters, including the parenthesised recommendation word on the recommended option (for example `Three plans (Recommended)`).
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WidgetClarificationOption
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* True for the one option the assistant recommends. It is always the first option when set. The server composes the recommendation word into `label`; clients may still draw a badge.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof WidgetClarificationOption
|
|
34
|
+
*/
|
|
35
|
+
recommended: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WidgetClarificationOption interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfWidgetClarificationOption(value: object): value is WidgetClarificationOption;
|
|
41
|
+
export declare function WidgetClarificationOptionFromJSON(json: any): WidgetClarificationOption;
|
|
42
|
+
export declare function WidgetClarificationOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetClarificationOption;
|
|
43
|
+
export declare function WidgetClarificationOptionToJSON(json: any): WidgetClarificationOption;
|
|
44
|
+
export declare function WidgetClarificationOptionToJSONTyped(value?: WidgetClarificationOption | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfWidgetClarificationOption = instanceOfWidgetClarificationOption;
|
|
17
|
+
exports.WidgetClarificationOptionFromJSON = WidgetClarificationOptionFromJSON;
|
|
18
|
+
exports.WidgetClarificationOptionFromJSONTyped = WidgetClarificationOptionFromJSONTyped;
|
|
19
|
+
exports.WidgetClarificationOptionToJSON = WidgetClarificationOptionToJSON;
|
|
20
|
+
exports.WidgetClarificationOptionToJSONTyped = WidgetClarificationOptionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WidgetClarificationOption interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWidgetClarificationOption(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('recommended' in value) || value['recommended'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function WidgetClarificationOptionFromJSON(json) {
|
|
34
|
+
return WidgetClarificationOptionFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function WidgetClarificationOptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'label': json['label'],
|
|
43
|
+
'recommended': json['recommended'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function WidgetClarificationOptionToJSON(json) {
|
|
47
|
+
return WidgetClarificationOptionToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function WidgetClarificationOptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'label': value['label'],
|
|
56
|
+
'recommended': value['recommended'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import type { WidgetClarificationOption } from './WidgetClarificationOption';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WidgetClarificationQuestion
|
|
17
|
+
*/
|
|
18
|
+
export interface WidgetClarificationQuestion {
|
|
19
|
+
/**
|
|
20
|
+
* `q1`, `q2`, ...
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WidgetClarificationQuestion
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WidgetClarificationQuestion
|
|
29
|
+
*/
|
|
30
|
+
question: string;
|
|
31
|
+
/**
|
|
32
|
+
* The localized word placed in parentheses on the recommended option's label (default `Recommended`).
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WidgetClarificationQuestion
|
|
35
|
+
*/
|
|
36
|
+
recommendedWord: string;
|
|
37
|
+
/**
|
|
38
|
+
* Two to five options with the recommended one first; empty for a question answered in words only.
|
|
39
|
+
* @type {Array<WidgetClarificationOption>}
|
|
40
|
+
* @memberof WidgetClarificationQuestion
|
|
41
|
+
*/
|
|
42
|
+
options: Array<WidgetClarificationOption>;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the person may answer in their own words (the "Other..." row). Always true when there are no options.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof WidgetClarificationQuestion
|
|
47
|
+
*/
|
|
48
|
+
allowOther: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the WidgetClarificationQuestion interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfWidgetClarificationQuestion(value: object): value is WidgetClarificationQuestion;
|
|
54
|
+
export declare function WidgetClarificationQuestionFromJSON(json: any): WidgetClarificationQuestion;
|
|
55
|
+
export declare function WidgetClarificationQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetClarificationQuestion;
|
|
56
|
+
export declare function WidgetClarificationQuestionToJSON(json: any): WidgetClarificationQuestion;
|
|
57
|
+
export declare function WidgetClarificationQuestionToJSONTyped(value?: WidgetClarificationQuestion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfWidgetClarificationQuestion = instanceOfWidgetClarificationQuestion;
|
|
17
|
+
exports.WidgetClarificationQuestionFromJSON = WidgetClarificationQuestionFromJSON;
|
|
18
|
+
exports.WidgetClarificationQuestionFromJSONTyped = WidgetClarificationQuestionFromJSONTyped;
|
|
19
|
+
exports.WidgetClarificationQuestionToJSON = WidgetClarificationQuestionToJSON;
|
|
20
|
+
exports.WidgetClarificationQuestionToJSONTyped = WidgetClarificationQuestionToJSONTyped;
|
|
21
|
+
const WidgetClarificationOption_1 = require("./WidgetClarificationOption");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WidgetClarificationQuestion interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWidgetClarificationQuestion(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('question' in value) || value['question'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('recommendedWord' in value) || value['recommendedWord'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('options' in value) || value['options'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('allowOther' in value) || value['allowOther'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function WidgetClarificationQuestionFromJSON(json) {
|
|
39
|
+
return WidgetClarificationQuestionFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function WidgetClarificationQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'question': json['question'],
|
|
48
|
+
'recommendedWord': json['recommendedWord'],
|
|
49
|
+
'options': (json['options'].map(WidgetClarificationOption_1.WidgetClarificationOptionFromJSON)),
|
|
50
|
+
'allowOther': json['allowOther'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function WidgetClarificationQuestionToJSON(json) {
|
|
54
|
+
return WidgetClarificationQuestionToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function WidgetClarificationQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'question': value['question'],
|
|
63
|
+
'recommendedWord': value['recommendedWord'],
|
|
64
|
+
'options': (value['options'].map(WidgetClarificationOption_1.WidgetClarificationOptionToJSON)),
|
|
65
|
+
'allowOther': value['allowOther'],
|
|
66
|
+
};
|
|
67
|
+
}
|