@widgetic/api-sdk-ts 1.11.109 → 1.11.111
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/BrandKitApi.d.ts +130 -0
- package/dist/apis/BrandKitApi.js +381 -0
- package/dist/apis/PartnerApi.d.ts +113 -1
- package/dist/apis/PartnerApi.js +325 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/BrandKitApi.js +344 -0
- package/dist/esm/apis/PartnerApi.js +325 -1
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/BrandColor.js +64 -0
- package/dist/esm/models/BrandFont.js +72 -0
- package/dist/esm/models/BrandKitAssetView.js +96 -0
- package/dist/esm/models/BrandKitFigmaSource.js +59 -0
- package/dist/esm/models/BrandKitTokens.js +56 -0
- package/dist/esm/models/BrandKitTokensFonts.js +48 -0
- package/dist/esm/models/BrandKitView.js +75 -0
- package/dist/esm/models/BrandKitViewOwner.js +54 -0
- package/dist/esm/models/BrandKitViewResponse.js +51 -0
- package/dist/esm/models/BrandSpacing.js +71 -0
- package/dist/esm/models/PatchBrandKitAssetRequest.js +68 -0
- package/dist/esm/models/PatchBrandKitRequest.js +54 -0
- package/dist/esm/models/PatchBrandKitRequestFonts.js +48 -0
- package/dist/esm/models/PatchBrandKitRequestSpacing.js +55 -0
- package/dist/esm/models/PostBrandKitIconRequest.js +47 -0
- package/dist/esm/models/PutBrandKitRequest.js +49 -0
- package/dist/esm/models/index.js +16 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/BrandColor.d.ts +60 -0
- package/dist/models/BrandColor.js +72 -0
- package/dist/models/BrandFont.d.ts +73 -0
- package/dist/models/BrandFont.js +80 -0
- package/dist/models/BrandKitAssetView.d.ts +130 -0
- package/dist/models/BrandKitAssetView.js +104 -0
- package/dist/models/BrandKitFigmaSource.d.ts +56 -0
- package/dist/models/BrandKitFigmaSource.js +66 -0
- package/dist/models/BrandKitTokens.d.ts +53 -0
- package/dist/models/BrandKitTokens.js +63 -0
- package/dist/models/BrandKitTokensFonts.d.ts +51 -0
- package/dist/models/BrandKitTokensFonts.js +55 -0
- package/dist/models/BrandKitView.d.ts +90 -0
- package/dist/models/BrandKitView.js +82 -0
- package/dist/models/BrandKitViewOwner.d.ts +46 -0
- package/dist/models/BrandKitViewOwner.js +62 -0
- package/dist/models/BrandKitViewResponse.d.ts +46 -0
- package/dist/models/BrandKitViewResponse.js +58 -0
- package/dist/models/BrandSpacing.d.ts +74 -0
- package/dist/models/BrandSpacing.js +78 -0
- package/dist/models/PatchBrandKitAssetRequest.d.ts +73 -0
- package/dist/models/PatchBrandKitAssetRequest.js +76 -0
- package/dist/models/PatchBrandKitRequest.d.ts +65 -0
- package/dist/models/PatchBrandKitRequest.js +61 -0
- package/dist/models/PatchBrandKitRequestFonts.d.ts +51 -0
- package/dist/models/PatchBrandKitRequestFonts.js +55 -0
- package/dist/models/PatchBrandKitRequestSpacing.d.ts +74 -0
- package/dist/models/PatchBrandKitRequestSpacing.js +62 -0
- package/dist/models/PostBrandKitIconRequest.d.ts +38 -0
- package/dist/models/PostBrandKitIconRequest.js +54 -0
- package/dist/models/PutBrandKitRequest.d.ts +46 -0
- package/dist/models/PutBrandKitRequest.js +56 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.js +16 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
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 BrandKitFigmaSource interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfBrandKitFigmaSource(value) {
|
|
18
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('fileKey' in value) || value['fileKey'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('nodeId' in value) || value['nodeId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('importedAt' in value) || value['importedAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function BrandKitFigmaSourceFromJSON(json) {
|
|
31
|
+
return BrandKitFigmaSourceFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function BrandKitFigmaSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'url': json['url'],
|
|
39
|
+
'fileKey': json['fileKey'],
|
|
40
|
+
'nodeId': json['nodeId'],
|
|
41
|
+
'fileName': json['fileName'],
|
|
42
|
+
'importedAt': (new Date(json['importedAt'])),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function BrandKitFigmaSourceToJSON(json) {
|
|
46
|
+
return BrandKitFigmaSourceToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function BrandKitFigmaSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'url': value['url'],
|
|
54
|
+
'fileKey': value['fileKey'],
|
|
55
|
+
'nodeId': value['nodeId'],
|
|
56
|
+
'fileName': value['fileName'],
|
|
57
|
+
'importedAt': ((value['importedAt']).toISOString()),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { BrandSpacingFromJSON, BrandSpacingToJSON, } from './BrandSpacing.js';
|
|
15
|
+
import { BrandColorFromJSON, BrandColorToJSON, } from './BrandColor.js';
|
|
16
|
+
import { BrandKitTokensFontsFromJSON, BrandKitTokensFontsToJSON, } from './BrandKitTokensFonts.js';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the BrandKitTokens interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfBrandKitTokens(value) {
|
|
21
|
+
if (!('colors' in value) || value['colors'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('fonts' in value) || value['fonts'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('spacing' in value) || value['spacing'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function BrandKitTokensFromJSON(json) {
|
|
30
|
+
return BrandKitTokensFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function BrandKitTokensFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'colors': (json['colors'].map(BrandColorFromJSON)),
|
|
38
|
+
'fonts': BrandKitTokensFontsFromJSON(json['fonts']),
|
|
39
|
+
'spacing': BrandSpacingFromJSON(json['spacing']),
|
|
40
|
+
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function BrandKitTokensToJSON(json) {
|
|
44
|
+
return BrandKitTokensToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function BrandKitTokensToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'colors': (value['colors'].map(BrandColorToJSON)),
|
|
52
|
+
'fonts': BrandKitTokensFontsToJSON(value['fonts']),
|
|
53
|
+
'spacing': BrandSpacingToJSON(value['spacing']),
|
|
54
|
+
'instructions': value['instructions'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { BrandFontFromJSON, BrandFontToJSON, } from './BrandFont.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the BrandKitTokensFonts interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfBrandKitTokensFonts(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function BrandKitTokensFontsFromJSON(json) {
|
|
22
|
+
return BrandKitTokensFontsFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function BrandKitTokensFontsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'title': json['title'] == null ? undefined : BrandFontFromJSON(json['title']),
|
|
30
|
+
'subtitle': json['subtitle'] == null ? undefined : BrandFontFromJSON(json['subtitle']),
|
|
31
|
+
'body': json['body'] == null ? undefined : BrandFontFromJSON(json['body']),
|
|
32
|
+
'caption': json['caption'] == null ? undefined : BrandFontFromJSON(json['caption']),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function BrandKitTokensFontsToJSON(json) {
|
|
36
|
+
return BrandKitTokensFontsToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function BrandKitTokensFontsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'title': BrandFontToJSON(value['title']),
|
|
44
|
+
'subtitle': BrandFontToJSON(value['subtitle']),
|
|
45
|
+
'body': BrandFontToJSON(value['body']),
|
|
46
|
+
'caption': BrandFontToJSON(value['caption']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { BrandKitAssetViewFromJSON, BrandKitAssetViewToJSON, } from './BrandKitAssetView.js';
|
|
15
|
+
import { BrandKitViewOwnerFromJSON, BrandKitViewOwnerToJSON, } from './BrandKitViewOwner.js';
|
|
16
|
+
import { BrandKitTokensFromJSON, BrandKitTokensToJSON, } from './BrandKitTokens.js';
|
|
17
|
+
import { BrandKitFigmaSourceFromJSON, BrandKitFigmaSourceToJSON, } from './BrandKitFigmaSource.js';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the BrandKitView interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfBrandKitView(value) {
|
|
22
|
+
if (!('owner' in value) || value['owner'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('isDefault' in value) || value['isDefault'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('canEdit' in value) || value['canEdit'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('tokens' in value) || value['tokens'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('assets' in value) || value['assets'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function BrandKitViewFromJSON(json) {
|
|
37
|
+
return BrandKitViewFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function BrandKitViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'owner': BrandKitViewOwnerFromJSON(json['owner']),
|
|
45
|
+
'isDefault': json['isDefault'],
|
|
46
|
+
'canEdit': json['canEdit'],
|
|
47
|
+
'version': json['version'],
|
|
48
|
+
'tokens': BrandKitTokensFromJSON(json['tokens']),
|
|
49
|
+
'assets': (json['assets'].map(BrandKitAssetViewFromJSON)),
|
|
50
|
+
'figmaSource': json['figmaSource'] == null ? undefined : BrandKitFigmaSourceFromJSON(json['figmaSource']),
|
|
51
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
52
|
+
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
53
|
+
'warnings': json['warnings'] == null ? undefined : json['warnings'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function BrandKitViewToJSON(json) {
|
|
57
|
+
return BrandKitViewToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function BrandKitViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'owner': BrandKitViewOwnerToJSON(value['owner']),
|
|
65
|
+
'isDefault': value['isDefault'],
|
|
66
|
+
'canEdit': value['canEdit'],
|
|
67
|
+
'version': value['version'],
|
|
68
|
+
'tokens': BrandKitTokensToJSON(value['tokens']),
|
|
69
|
+
'assets': (value['assets'].map(BrandKitAssetViewToJSON)),
|
|
70
|
+
'figmaSource': BrandKitFigmaSourceToJSON(value['figmaSource']),
|
|
71
|
+
'updatedAt': value['updatedAt'] == null ? undefined : (value['updatedAt'].toISOString()),
|
|
72
|
+
'updatedBy': value['updatedBy'],
|
|
73
|
+
'warnings': value['warnings'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 BrandKitViewOwnerTypeEnum = {
|
|
18
|
+
User: 'user',
|
|
19
|
+
Organization: 'organization'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BrandKitViewOwner interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfBrandKitViewOwner(value) {
|
|
25
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function BrandKitViewOwnerFromJSON(json) {
|
|
32
|
+
return BrandKitViewOwnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function BrandKitViewOwnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'organizationId': json['organizationId'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function BrandKitViewOwnerToJSON(json) {
|
|
44
|
+
return BrandKitViewOwnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function BrandKitViewOwnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'type': value['type'],
|
|
52
|
+
'organizationId': value['organizationId'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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
|
+
import { BrandKitViewFromJSON, BrandKitViewToJSON, } from './BrandKitView.js';
|
|
15
|
+
import { ResponseMetaFromJSON, ResponseMetaToJSON, } from './ResponseMeta.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the BrandKitViewResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfBrandKitViewResponse(value) {
|
|
20
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function BrandKitViewResponseFromJSON(json) {
|
|
27
|
+
return BrandKitViewResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function BrandKitViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'success': json['success'],
|
|
35
|
+
'data': BrandKitViewFromJSON(json['data']),
|
|
36
|
+
'meta': json['meta'] == null ? undefined : ResponseMetaFromJSON(json['meta']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function BrandKitViewResponseToJSON(json) {
|
|
40
|
+
return BrandKitViewResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function BrandKitViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'success': value['success'],
|
|
48
|
+
'data': BrandKitViewToJSON(value['data']),
|
|
49
|
+
'meta': ResponseMetaToJSON(value['meta']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 BrandSpacing interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfBrandSpacing(value) {
|
|
18
|
+
if (!('xs' in value) || value['xs'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('s' in value) || value['s'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('m' in value) || value['m'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('l' in value) || value['l'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('xl' in value) || value['xl'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('radiusS' in value) || value['radiusS'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('radiusM' in value) || value['radiusM'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('radiusL' in value) || value['radiusL'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function BrandSpacingFromJSON(json) {
|
|
37
|
+
return BrandSpacingFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function BrandSpacingFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'xs': json['xs'],
|
|
45
|
+
's': json['s'],
|
|
46
|
+
'm': json['m'],
|
|
47
|
+
'l': json['l'],
|
|
48
|
+
'xl': json['xl'],
|
|
49
|
+
'radiusS': json['radiusS'],
|
|
50
|
+
'radiusM': json['radiusM'],
|
|
51
|
+
'radiusL': json['radiusL'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function BrandSpacingToJSON(json) {
|
|
55
|
+
return BrandSpacingToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function BrandSpacingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'xs': value['xs'],
|
|
63
|
+
's': value['s'],
|
|
64
|
+
'm': value['m'],
|
|
65
|
+
'l': value['l'],
|
|
66
|
+
'xl': value['xl'],
|
|
67
|
+
'radiusS': value['radiusS'],
|
|
68
|
+
'radiusM': value['radiusM'],
|
|
69
|
+
'radiusL': value['radiusL'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -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
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PatchBrandKitAssetRequestWeightEnum = {
|
|
18
|
+
NUMBER_100: 100,
|
|
19
|
+
NUMBER_200: 200,
|
|
20
|
+
NUMBER_300: 300,
|
|
21
|
+
NUMBER_400: 400,
|
|
22
|
+
NUMBER_500: 500,
|
|
23
|
+
NUMBER_600: 600,
|
|
24
|
+
NUMBER_700: 700,
|
|
25
|
+
NUMBER_800: 800,
|
|
26
|
+
NUMBER_900: 900
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const PatchBrandKitAssetRequestStyleEnum = {
|
|
32
|
+
Normal: 'normal',
|
|
33
|
+
Italic: 'italic'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the PatchBrandKitAssetRequest interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfPatchBrandKitAssetRequest(value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
export function PatchBrandKitAssetRequestFromJSON(json) {
|
|
42
|
+
return PatchBrandKitAssetRequestFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function PatchBrandKitAssetRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
50
|
+
'family': json['family'] == null ? undefined : json['family'],
|
|
51
|
+
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
52
|
+
'style': json['style'] == null ? undefined : json['style'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function PatchBrandKitAssetRequestToJSON(json) {
|
|
56
|
+
return PatchBrandKitAssetRequestToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function PatchBrandKitAssetRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'family': value['family'],
|
|
65
|
+
'weight': value['weight'],
|
|
66
|
+
'style': value['style'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { BrandColorFromJSON, BrandColorToJSON, } from './BrandColor.js';
|
|
15
|
+
import { PatchBrandKitRequestFontsFromJSON, PatchBrandKitRequestFontsToJSON, } from './PatchBrandKitRequestFonts.js';
|
|
16
|
+
import { PatchBrandKitRequestSpacingFromJSON, PatchBrandKitRequestSpacingToJSON, } from './PatchBrandKitRequestSpacing.js';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PatchBrandKitRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfPatchBrandKitRequest(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PatchBrandKitRequestFromJSON(json) {
|
|
24
|
+
return PatchBrandKitRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PatchBrandKitRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'colors': json['colors'] == null ? undefined : (json['colors'].map(BrandColorFromJSON)),
|
|
32
|
+
'fonts': json['fonts'] == null ? undefined : PatchBrandKitRequestFontsFromJSON(json['fonts']),
|
|
33
|
+
'spacing': json['spacing'] == null ? undefined : PatchBrandKitRequestSpacingFromJSON(json['spacing']),
|
|
34
|
+
'cornerRadius': json['cornerRadius'] == null ? undefined : json['cornerRadius'],
|
|
35
|
+
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
36
|
+
'expectedVersion': json['expectedVersion'] == null ? undefined : json['expectedVersion'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function PatchBrandKitRequestToJSON(json) {
|
|
40
|
+
return PatchBrandKitRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PatchBrandKitRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'colors': value['colors'] == null ? undefined : (value['colors'].map(BrandColorToJSON)),
|
|
48
|
+
'fonts': PatchBrandKitRequestFontsToJSON(value['fonts']),
|
|
49
|
+
'spacing': PatchBrandKitRequestSpacingToJSON(value['spacing']),
|
|
50
|
+
'cornerRadius': value['cornerRadius'],
|
|
51
|
+
'instructions': value['instructions'],
|
|
52
|
+
'expectedVersion': value['expectedVersion'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { BrandFontFromJSON, BrandFontToJSON, } from './BrandFont.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PatchBrandKitRequestFonts interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPatchBrandKitRequestFonts(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function PatchBrandKitRequestFontsFromJSON(json) {
|
|
22
|
+
return PatchBrandKitRequestFontsFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function PatchBrandKitRequestFontsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'title': json['title'] == null ? undefined : BrandFontFromJSON(json['title']),
|
|
30
|
+
'subtitle': json['subtitle'] == null ? undefined : BrandFontFromJSON(json['subtitle']),
|
|
31
|
+
'body': json['body'] == null ? undefined : BrandFontFromJSON(json['body']),
|
|
32
|
+
'caption': json['caption'] == null ? undefined : BrandFontFromJSON(json['caption']),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PatchBrandKitRequestFontsToJSON(json) {
|
|
36
|
+
return PatchBrandKitRequestFontsToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PatchBrandKitRequestFontsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'title': BrandFontToJSON(value['title']),
|
|
44
|
+
'subtitle': BrandFontToJSON(value['subtitle']),
|
|
45
|
+
'body': BrandFontToJSON(value['body']),
|
|
46
|
+
'caption': BrandFontToJSON(value['caption']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 PatchBrandKitRequestSpacing interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPatchBrandKitRequestSpacing(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PatchBrandKitRequestSpacingFromJSON(json) {
|
|
21
|
+
return PatchBrandKitRequestSpacingFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PatchBrandKitRequestSpacingFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'xs': json['xs'] == null ? undefined : json['xs'],
|
|
29
|
+
's': json['s'] == null ? undefined : json['s'],
|
|
30
|
+
'm': json['m'] == null ? undefined : json['m'],
|
|
31
|
+
'l': json['l'] == null ? undefined : json['l'],
|
|
32
|
+
'xl': json['xl'] == null ? undefined : json['xl'],
|
|
33
|
+
'radiusS': json['radiusS'] == null ? undefined : json['radiusS'],
|
|
34
|
+
'radiusM': json['radiusM'] == null ? undefined : json['radiusM'],
|
|
35
|
+
'radiusL': json['radiusL'] == null ? undefined : json['radiusL'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function PatchBrandKitRequestSpacingToJSON(json) {
|
|
39
|
+
return PatchBrandKitRequestSpacingToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function PatchBrandKitRequestSpacingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'xs': value['xs'],
|
|
47
|
+
's': value['s'],
|
|
48
|
+
'm': value['m'],
|
|
49
|
+
'l': value['l'],
|
|
50
|
+
'xl': value['xl'],
|
|
51
|
+
'radiusS': value['radiusS'],
|
|
52
|
+
'radiusM': value['radiusM'],
|
|
53
|
+
'radiusL': value['radiusL'],
|
|
54
|
+
};
|
|
55
|
+
}
|