@widgetic/api-sdk-ts 2.0.2 → 2.0.3
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/CompositionsApi.d.ts +1 -0
- package/dist/apis/CompositionsApi.js +3 -0
- package/dist/apis/CreditsApi.d.ts +4 -4
- package/dist/apis/CreditsApi.js +4 -4
- package/dist/apis/PartnersApi.d.ts +4 -4
- package/dist/apis/PartnersApi.js +4 -4
- package/dist/apis/UploadsApi.d.ts +4 -4
- package/dist/apis/UploadsApi.js +4 -4
- package/dist/esm/apis/CompositionsApi.js +3 -0
- package/dist/esm/apis/CreditsApi.js +4 -4
- package/dist/esm/apis/PartnersApi.js +4 -4
- package/dist/esm/apis/UploadsApi.js +4 -4
- package/dist/esm/models/Canvas.js +3 -0
- package/dist/esm/models/CanvasActiveOperation.js +66 -0
- package/dist/esm/models/CreateWidget201ResponseData.js +6 -0
- package/dist/esm/models/GetOperationResponseDataMetadata.js +11 -0
- package/dist/esm/models/Upload.js +2 -0
- package/dist/esm/models/Widget.js +6 -0
- package/dist/esm/models/WidgetClarificationQuestion.js +4 -0
- package/dist/esm/models/WidgetCodeChange.js +68 -0
- package/dist/esm/models/WidgetCodeChanges.js +48 -0
- package/dist/esm/models/WidgetNextStep.js +4 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AccountCreditBalance.d.ts +2 -2
- package/dist/models/Canvas.d.ts +7 -0
- package/dist/models/Canvas.js +3 -0
- package/dist/models/CanvasActiveOperation.d.ts +65 -0
- package/dist/models/CanvasActiveOperation.js +74 -0
- package/dist/models/CreateWidget201ResponseData.d.ts +18 -0
- package/dist/models/CreateWidget201ResponseData.js +6 -0
- package/dist/models/GetOperationResponseDataMetadata.d.ts +23 -1
- package/dist/models/GetOperationResponseDataMetadata.js +12 -1
- package/dist/models/Upload.d.ts +6 -0
- package/dist/models/Upload.js +2 -0
- package/dist/models/Widget.d.ts +18 -0
- package/dist/models/Widget.js +6 -0
- package/dist/models/WidgetClarificationQuestion.d.ts +6 -0
- package/dist/models/WidgetClarificationQuestion.js +4 -0
- package/dist/models/WidgetCodeChange.d.ts +70 -0
- package/dist/models/WidgetCodeChange.js +76 -0
- package/dist/models/WidgetCodeChanges.d.ts +39 -0
- package/dist/models/WidgetCodeChanges.js +55 -0
- package/dist/models/WidgetNextStep.d.ts +7 -1
- package/dist/models/WidgetNextStep.js +4 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
package/dist/models/Widget.js
CHANGED
|
@@ -52,11 +52,14 @@ function WidgetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
53
53
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
54
54
|
'jsPath': json['jsPath'] == null ? undefined : json['jsPath'],
|
|
55
|
+
'thumbnailSvg': json['thumbnailSvg'] == null ? undefined : json['thumbnailSvg'],
|
|
55
56
|
'canvasId': json['canvasId'] == null ? undefined : json['canvasId'],
|
|
56
57
|
'repoId': json['repoId'] == null ? undefined : json['repoId'],
|
|
57
58
|
'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
|
|
58
59
|
'version': json['version'] == null ? undefined : json['version'],
|
|
59
60
|
'lastCommitSha': json['lastCommitSha'] == null ? undefined : json['lastCommitSha'],
|
|
61
|
+
'hasUnpublishedChanges': json['hasUnpublishedChanges'] == null ? undefined : json['hasUnpublishedChanges'],
|
|
62
|
+
'publishedAt': json['publishedAt'] == null ? undefined : (new Date(json['publishedAt'])),
|
|
60
63
|
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
61
64
|
'projectFolder': json['projectFolder'] == null ? undefined : json['projectFolder'],
|
|
62
65
|
'workspaceType': json['workspaceType'] == null ? undefined : json['workspaceType'],
|
|
@@ -83,11 +86,14 @@ function WidgetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
86
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
84
87
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
85
88
|
'jsPath': value['jsPath'],
|
|
89
|
+
'thumbnailSvg': value['thumbnailSvg'],
|
|
86
90
|
'canvasId': value['canvasId'],
|
|
87
91
|
'repoId': value['repoId'],
|
|
88
92
|
'databaseId': value['databaseId'],
|
|
89
93
|
'version': value['version'],
|
|
90
94
|
'lastCommitSha': value['lastCommitSha'],
|
|
95
|
+
'hasUnpublishedChanges': value['hasUnpublishedChanges'],
|
|
96
|
+
'publishedAt': value['publishedAt'] == null ? undefined : (value['publishedAt'].toISOString()),
|
|
91
97
|
'organizationId': value['organizationId'],
|
|
92
98
|
'projectFolder': value['projectFolder'],
|
|
93
99
|
'workspaceType': value['workspaceType'],
|
|
@@ -46,6 +46,12 @@ export interface WidgetClarificationQuestion {
|
|
|
46
46
|
* @memberof WidgetClarificationQuestion
|
|
47
47
|
*/
|
|
48
48
|
allowOther: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the person may choose more than one option. The assistant sets it for each question on its own: false (one answer) unless the answer can hold several things at once (which sections, which platforms), so a card may mix both kinds. Always false when there are fewer than two options. Several choices go back in one `answer`, one per line.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof WidgetClarificationQuestion
|
|
53
|
+
*/
|
|
54
|
+
allowMultiple: boolean;
|
|
49
55
|
}
|
|
50
56
|
/**
|
|
51
57
|
* Check if a given object implements the WidgetClarificationQuestion interface.
|
|
@@ -33,6 +33,8 @@ function instanceOfWidgetClarificationQuestion(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('allowOther' in value) || value['allowOther'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('allowMultiple' in value) || value['allowMultiple'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
return true;
|
|
37
39
|
}
|
|
38
40
|
function WidgetClarificationQuestionFromJSON(json) {
|
|
@@ -48,6 +50,7 @@ function WidgetClarificationQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
'recommendedWord': json['recommendedWord'],
|
|
49
51
|
'options': (json['options'].map(WidgetClarificationOption_1.WidgetClarificationOptionFromJSON)),
|
|
50
52
|
'allowOther': json['allowOther'],
|
|
53
|
+
'allowMultiple': json['allowMultiple'],
|
|
51
54
|
};
|
|
52
55
|
}
|
|
53
56
|
function WidgetClarificationQuestionToJSON(json) {
|
|
@@ -63,5 +66,6 @@ function WidgetClarificationQuestionToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
63
66
|
'recommendedWord': value['recommendedWord'],
|
|
64
67
|
'options': (value['options'].map(WidgetClarificationOption_1.WidgetClarificationOptionToJSON)),
|
|
65
68
|
'allowOther': value['allowOther'],
|
|
69
|
+
'allowMultiple': value['allowMultiple'],
|
|
66
70
|
};
|
|
67
71
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 file a build changed, in `metadata.codeChanges.files`. The change is in `patch` as unified hunks (the format of GitLab's own commit diff, without the file header): each hunk starts with `@@ -oldStart,oldCount +newStart,newCount @@` (a count of one is left out; a file that is new starts at `-0,0`) and its lines start with a space (unchanged, for context), `-` (taken out) or `+` (put in). A client that draws it reads the hunk until the next `@@` line and does not depend on the counts, because a cut patch ends in the middle of a hunk.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WidgetCodeChange
|
|
16
|
+
*/
|
|
17
|
+
export interface WidgetCodeChange {
|
|
18
|
+
/**
|
|
19
|
+
* The path in the repository, for example `src/routes/+page.svelte`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WidgetCodeChange
|
|
22
|
+
*/
|
|
23
|
+
path: string;
|
|
24
|
+
/**
|
|
25
|
+
* `added` for a file that did not exist before the build, `modified` for one that did.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WidgetCodeChange
|
|
28
|
+
*/
|
|
29
|
+
status: WidgetCodeChangeStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Lines put in, counted over the whole file even when `patch` was cut.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof WidgetCodeChange
|
|
34
|
+
*/
|
|
35
|
+
additions: number;
|
|
36
|
+
/**
|
|
37
|
+
* Lines taken out, counted over the whole file even when `patch` was cut.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof WidgetCodeChange
|
|
40
|
+
*/
|
|
41
|
+
deletions: number;
|
|
42
|
+
/**
|
|
43
|
+
* The change as unified hunks, with three unchanged lines of context around every change. Empty when it did not fit (then `truncated` is true).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WidgetCodeChange
|
|
46
|
+
*/
|
|
47
|
+
patch: string;
|
|
48
|
+
/**
|
|
49
|
+
* Present and true when `patch` was cut short or left out (a size bound, or a line so long it was cut). The counts stay the true ones.
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof WidgetCodeChange
|
|
52
|
+
*/
|
|
53
|
+
truncated?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const WidgetCodeChangeStatusEnum: {
|
|
59
|
+
readonly Added: 'added';
|
|
60
|
+
readonly Modified: 'modified';
|
|
61
|
+
};
|
|
62
|
+
export type WidgetCodeChangeStatusEnum = typeof WidgetCodeChangeStatusEnum[keyof typeof WidgetCodeChangeStatusEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the WidgetCodeChange interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfWidgetCodeChange(value: object): value is WidgetCodeChange;
|
|
67
|
+
export declare function WidgetCodeChangeFromJSON(json: any): WidgetCodeChange;
|
|
68
|
+
export declare function WidgetCodeChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetCodeChange;
|
|
69
|
+
export declare function WidgetCodeChangeToJSON(json: any): WidgetCodeChange;
|
|
70
|
+
export declare function WidgetCodeChangeToJSONTyped(value?: WidgetCodeChange | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.WidgetCodeChangeStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfWidgetCodeChange = instanceOfWidgetCodeChange;
|
|
18
|
+
exports.WidgetCodeChangeFromJSON = WidgetCodeChangeFromJSON;
|
|
19
|
+
exports.WidgetCodeChangeFromJSONTyped = WidgetCodeChangeFromJSONTyped;
|
|
20
|
+
exports.WidgetCodeChangeToJSON = WidgetCodeChangeToJSON;
|
|
21
|
+
exports.WidgetCodeChangeToJSONTyped = WidgetCodeChangeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WidgetCodeChangeStatusEnum = {
|
|
26
|
+
Added: 'added',
|
|
27
|
+
Modified: 'modified'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the WidgetCodeChange interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfWidgetCodeChange(value) {
|
|
33
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('additions' in value) || value['additions'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('deletions' in value) || value['deletions'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('patch' in value) || value['patch'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function WidgetCodeChangeFromJSON(json) {
|
|
46
|
+
return WidgetCodeChangeFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function WidgetCodeChangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'path': json['path'],
|
|
54
|
+
'status': json['status'],
|
|
55
|
+
'additions': json['additions'],
|
|
56
|
+
'deletions': json['deletions'],
|
|
57
|
+
'patch': json['patch'],
|
|
58
|
+
'truncated': json['truncated'] == null ? undefined : json['truncated'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function WidgetCodeChangeToJSON(json) {
|
|
62
|
+
return WidgetCodeChangeToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function WidgetCodeChangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'path': value['path'],
|
|
70
|
+
'status': value['status'],
|
|
71
|
+
'additions': value['additions'],
|
|
72
|
+
'deletions': value['deletions'],
|
|
73
|
+
'patch': value['patch'],
|
|
74
|
+
'truncated': value['truncated'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { WidgetCodeChange } from './WidgetCodeChange';
|
|
13
|
+
/**
|
|
14
|
+
* What a completed build changed, in `metadata.codeChanges` of its operation, for a client that declared `clientCapabilities.codeChanges`. Present only for a build that was kept (a version was saved and the preview compiled) on a follow-up round of a conversation (the first message replaces what the repository held, so there is nothing to compare), and only when something a person could see changed (a change of line endings alone is none). The size is bounded: a few files, and a few tens of thousands of characters in all.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WidgetCodeChanges
|
|
17
|
+
*/
|
|
18
|
+
export interface WidgetCodeChanges {
|
|
19
|
+
/**
|
|
20
|
+
* The files that changed, the code first, then data files such as JSON, then anything else.
|
|
21
|
+
* @type {Array<WidgetCodeChange>}
|
|
22
|
+
* @memberof WidgetCodeChanges
|
|
23
|
+
*/
|
|
24
|
+
files: Array<WidgetCodeChange>;
|
|
25
|
+
/**
|
|
26
|
+
* How many more files changed than `files` lists. 0 when every changed file is listed.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof WidgetCodeChanges
|
|
29
|
+
*/
|
|
30
|
+
omittedFiles: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the WidgetCodeChanges interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfWidgetCodeChanges(value: object): value is WidgetCodeChanges;
|
|
36
|
+
export declare function WidgetCodeChangesFromJSON(json: any): WidgetCodeChanges;
|
|
37
|
+
export declare function WidgetCodeChangesFromJSONTyped(json: any, ignoreDiscriminator: boolean): WidgetCodeChanges;
|
|
38
|
+
export declare function WidgetCodeChangesToJSON(json: any): WidgetCodeChanges;
|
|
39
|
+
export declare function WidgetCodeChangesToJSONTyped(value?: WidgetCodeChanges | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfWidgetCodeChanges = instanceOfWidgetCodeChanges;
|
|
17
|
+
exports.WidgetCodeChangesFromJSON = WidgetCodeChangesFromJSON;
|
|
18
|
+
exports.WidgetCodeChangesFromJSONTyped = WidgetCodeChangesFromJSONTyped;
|
|
19
|
+
exports.WidgetCodeChangesToJSON = WidgetCodeChangesToJSON;
|
|
20
|
+
exports.WidgetCodeChangesToJSONTyped = WidgetCodeChangesToJSONTyped;
|
|
21
|
+
const WidgetCodeChange_1 = require("./WidgetCodeChange");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WidgetCodeChanges interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWidgetCodeChanges(value) {
|
|
26
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('omittedFiles' in value) || value['omittedFiles'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function WidgetCodeChangesFromJSON(json) {
|
|
33
|
+
return WidgetCodeChangesFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function WidgetCodeChangesFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'files': (json['files'].map(WidgetCodeChange_1.WidgetCodeChangeFromJSON)),
|
|
41
|
+
'omittedFiles': json['omittedFiles'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function WidgetCodeChangesToJSON(json) {
|
|
45
|
+
return WidgetCodeChangesToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function WidgetCodeChangesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'files': (value['files'].map(WidgetCodeChange_1.WidgetCodeChangeToJSON)),
|
|
53
|
+
'omittedFiles': value['omittedFiles'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* One suggested next improvement, in `metadata.nextSteps` of a completed generation. The label is a complete request: sending it as the next message is the whole action. The first suggestion is always the recommended one; the chips saved under the reply carry no flag, so a client applies the same rule after a reload.
|
|
13
|
+
* One suggested next improvement, in `metadata.nextSteps` of a completed generation. The label is a complete request: sending it as the next message is the whole action. The title is the same request in at most five words, for a small pill that shows the label in full when the pointer rests on it. The first suggestion is always the recommended one; the chips saved under the reply carry the label and the title but no flag, so a client applies the same rule after a reload.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface WidgetNextStep
|
|
16
16
|
*/
|
|
@@ -27,6 +27,12 @@ export interface WidgetNextStep {
|
|
|
27
27
|
* @memberof WidgetNextStep
|
|
28
28
|
*/
|
|
29
29
|
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* The same request in at most five words and 40 characters, in the person's language ("Add a confetti burst"). Never empty: when the model gave none, the server cuts one from the label.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WidgetNextStep
|
|
34
|
+
*/
|
|
35
|
+
title: string;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -39,6 +39,8 @@ function instanceOfWidgetNextStep(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('label' in value) || value['label'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
43
|
+
return false;
|
|
42
44
|
if (!('kind' in value) || value['kind'] === undefined)
|
|
43
45
|
return false;
|
|
44
46
|
if (!('recommended' in value) || value['recommended'] === undefined)
|
|
@@ -55,6 +57,7 @@ function WidgetNextStepFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
57
|
return {
|
|
56
58
|
'id': json['id'],
|
|
57
59
|
'label': json['label'],
|
|
60
|
+
'title': json['title'],
|
|
58
61
|
'kind': json['kind'],
|
|
59
62
|
'recommended': json['recommended'],
|
|
60
63
|
};
|
|
@@ -69,6 +72,7 @@ function WidgetNextStepToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
72
|
return {
|
|
70
73
|
'id': value['id'],
|
|
71
74
|
'label': value['label'],
|
|
75
|
+
'title': value['title'],
|
|
72
76
|
'kind': value['kind'],
|
|
73
77
|
'recommended': value['recommended'],
|
|
74
78
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './BrandKitViewResponse';
|
|
|
27
27
|
export * from './BrandSpacing';
|
|
28
28
|
export * from './BrandTextStyle';
|
|
29
29
|
export * from './Canvas';
|
|
30
|
+
export * from './CanvasActiveOperation';
|
|
30
31
|
export * from './CanvasResponse';
|
|
31
32
|
export * from './CheckCompositionAccessResponse';
|
|
32
33
|
export * from './CheckCompositionAccessResponseData';
|
|
@@ -317,6 +318,8 @@ export * from './Widget';
|
|
|
317
318
|
export * from './WidgetClarification';
|
|
318
319
|
export * from './WidgetClarificationOption';
|
|
319
320
|
export * from './WidgetClarificationQuestion';
|
|
321
|
+
export * from './WidgetCodeChange';
|
|
322
|
+
export * from './WidgetCodeChanges';
|
|
320
323
|
export * from './WidgetNextStep';
|
|
321
324
|
export * from './WidgetPlan';
|
|
322
325
|
export * from './WidgetPlanDecisions';
|
package/dist/models/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./BrandKitViewResponse"), exports);
|
|
|
45
45
|
__exportStar(require("./BrandSpacing"), exports);
|
|
46
46
|
__exportStar(require("./BrandTextStyle"), exports);
|
|
47
47
|
__exportStar(require("./Canvas"), exports);
|
|
48
|
+
__exportStar(require("./CanvasActiveOperation"), exports);
|
|
48
49
|
__exportStar(require("./CanvasResponse"), exports);
|
|
49
50
|
__exportStar(require("./CheckCompositionAccessResponse"), exports);
|
|
50
51
|
__exportStar(require("./CheckCompositionAccessResponseData"), exports);
|
|
@@ -335,6 +336,8 @@ __exportStar(require("./Widget"), exports);
|
|
|
335
336
|
__exportStar(require("./WidgetClarification"), exports);
|
|
336
337
|
__exportStar(require("./WidgetClarificationOption"), exports);
|
|
337
338
|
__exportStar(require("./WidgetClarificationQuestion"), exports);
|
|
339
|
+
__exportStar(require("./WidgetCodeChange"), exports);
|
|
340
|
+
__exportStar(require("./WidgetCodeChanges"), exports);
|
|
338
341
|
__exportStar(require("./WidgetNextStep"), exports);
|
|
339
342
|
__exportStar(require("./WidgetPlan"), exports);
|
|
340
343
|
__exportStar(require("./WidgetPlanDecisions"), 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.3";
|
|
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.3";
|
|
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.3";
|
|
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.3",
|
|
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",
|