@fbrc/sdk 0.0.12 → 0.0.13
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/.openapi-generator/FILES +3 -0
- package/dist/apis/DefaultApi.d.ts +89 -0
- package/dist/apis/DefaultApi.js +249 -0
- package/dist/esm/apis/DefaultApi.d.ts +89 -0
- package/dist/esm/apis/DefaultApi.js +245 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/ChatbotModel.d.ts +2 -1
- package/dist/esm/models/ChatbotModel.js +2 -1
- package/dist/esm/models/CreateBookmarkRequestLocation.d.ts +38 -0
- package/dist/esm/models/CreateBookmarkRequestLocation.js +51 -0
- package/dist/esm/models/CreateBookmarkRequestLocationAnyOf.d.ts +32 -0
- package/dist/esm/models/CreateBookmarkRequestLocationAnyOf.js +45 -0
- package/dist/esm/models/CreateBookmarkRequestLocationAnyOf1.d.ts +32 -0
- package/dist/esm/models/CreateBookmarkRequestLocationAnyOf1.js +45 -0
- package/dist/esm/models/DeleteResourcesRequest.d.ts +38 -0
- package/dist/esm/models/DeleteResourcesRequest.js +45 -0
- package/dist/esm/models/DeleteSpace404Response.d.ts +52 -0
- package/dist/esm/models/DeleteSpace404Response.js +59 -0
- package/dist/esm/models/MarketingCampaignSource.d.ts +69 -0
- package/dist/esm/models/MarketingCampaignSource.js +68 -0
- package/dist/esm/models/PlanEntitlements.d.ts +6 -0
- package/dist/esm/models/PlanEntitlements.js +4 -0
- package/dist/esm/models/SearchRequestAllOfFilters.d.ts +6 -0
- package/dist/esm/models/SearchRequestAllOfFilters.js +4 -0
- package/dist/esm/models/UpdateResourceRequest.d.ts +58 -0
- package/dist/esm/models/UpdateResourceRequest.js +76 -0
- package/dist/esm/models/UpdateResourceRequestLocation.d.ts +38 -0
- package/dist/esm/models/UpdateResourceRequestLocation.js +51 -0
- package/dist/esm/models/UsageAmountType.d.ts +25 -0
- package/dist/esm/models/UsageAmountType.js +43 -0
- package/dist/esm/models/UsageBreakdownLabel.d.ts +25 -0
- package/dist/esm/models/UsageBreakdownLabel.js +43 -0
- package/dist/esm/models/UsageItem.d.ts +26 -0
- package/dist/esm/models/UsageItem.js +29 -0
- package/dist/esm/models/UsageItemBreakdownInner.d.ts +39 -0
- package/dist/esm/models/UsageItemBreakdownInner.js +52 -0
- package/dist/esm/models/UtmSources.d.ts +24 -0
- package/dist/esm/models/UtmSources.js +42 -0
- package/dist/esm/models/V2WorkspaceDeletionConfirmationPostRequest.d.ts +32 -0
- package/dist/esm/models/V2WorkspaceDeletionConfirmationPostRequest.js +43 -0
- package/dist/esm/models/V2WorkspaceGet200Response.d.ts +39 -0
- package/dist/esm/models/V2WorkspaceGet200Response.js +48 -0
- package/dist/esm/models/V2WorkspaceGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/V2WorkspaceGet200ResponseData.js +44 -0
- package/dist/esm/models/V2WorkspacePatchRequest.d.ts +50 -0
- package/dist/esm/models/V2WorkspacePatchRequest.js +47 -0
- package/dist/esm/models/V2WorkspacePostRequest.d.ts +64 -0
- package/dist/esm/models/V2WorkspacePostRequest.js +53 -0
- package/dist/esm/models/WorkspaceSubscriptionCreditOperationCosts.d.ts +6 -0
- package/dist/esm/models/WorkspaceSubscriptionCreditOperationCosts.js +4 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/models/ChatbotModel.d.ts +2 -1
- package/dist/models/ChatbotModel.js +2 -1
- package/dist/models/CreateBookmarkRequestLocation.d.ts +38 -0
- package/dist/models/CreateBookmarkRequestLocation.js +58 -0
- package/dist/models/CreateBookmarkRequestLocationAnyOf.d.ts +32 -0
- package/dist/models/CreateBookmarkRequestLocationAnyOf.js +52 -0
- package/dist/models/CreateBookmarkRequestLocationAnyOf1.d.ts +32 -0
- package/dist/models/CreateBookmarkRequestLocationAnyOf1.js +52 -0
- package/dist/models/DeleteResourcesRequest.d.ts +38 -0
- package/dist/models/DeleteResourcesRequest.js +52 -0
- package/dist/models/DeleteSpace404Response.d.ts +52 -0
- package/dist/models/DeleteSpace404Response.js +67 -0
- package/dist/models/MarketingCampaignSource.d.ts +69 -0
- package/dist/models/MarketingCampaignSource.js +75 -0
- package/dist/models/PlanEntitlements.d.ts +6 -0
- package/dist/models/PlanEntitlements.js +4 -0
- package/dist/models/SearchRequestAllOfFilters.d.ts +6 -0
- package/dist/models/SearchRequestAllOfFilters.js +4 -0
- package/dist/models/UpdateResourceRequest.d.ts +58 -0
- package/dist/models/UpdateResourceRequest.js +83 -0
- package/dist/models/UpdateResourceRequestLocation.d.ts +38 -0
- package/dist/models/UpdateResourceRequestLocation.js +58 -0
- package/dist/models/UsageAmountType.d.ts +25 -0
- package/dist/models/UsageAmountType.js +51 -0
- package/dist/models/UsageBreakdownLabel.d.ts +25 -0
- package/dist/models/UsageBreakdownLabel.js +51 -0
- package/dist/models/UsageItem.d.ts +26 -0
- package/dist/models/UsageItem.js +29 -0
- package/dist/models/UsageItemBreakdownInner.d.ts +39 -0
- package/dist/models/UsageItemBreakdownInner.js +59 -0
- package/dist/models/UtmSources.d.ts +24 -0
- package/dist/models/UtmSources.js +50 -0
- package/dist/models/V2WorkspaceDeletionConfirmationPostRequest.d.ts +32 -0
- package/dist/models/V2WorkspaceDeletionConfirmationPostRequest.js +50 -0
- package/dist/models/V2WorkspaceGet200Response.d.ts +39 -0
- package/dist/models/V2WorkspaceGet200Response.js +55 -0
- package/dist/models/V2WorkspaceGet200ResponseData.d.ts +33 -0
- package/dist/models/V2WorkspaceGet200ResponseData.js +51 -0
- package/dist/models/V2WorkspacePatchRequest.d.ts +50 -0
- package/dist/models/V2WorkspacePatchRequest.js +54 -0
- package/dist/models/V2WorkspacePostRequest.d.ts +64 -0
- package/dist/models/V2WorkspacePostRequest.js +60 -0
- package/dist/models/V2WorkspacesPatchRequest.d.ts +50 -0
- package/dist/models/V2WorkspacesPatchRequest.js +72 -0
- package/dist/models/V2WorkspacesPostRequest.d.ts +64 -0
- package/dist/models/V2WorkspacesPostRequest.js +82 -0
- package/dist/models/WorkspaceSubscriptionCreditOperationCosts.d.ts +6 -0
- package/dist/models/WorkspaceSubscriptionCreditOperationCosts.js +4 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/index.ts +3 -1
- package/src/models/ChatbotModel.ts +2 -1
- package/src/models/PlanEntitlements.ts +10 -0
- package/src/models/SearchRequestAllOfFilters.ts +10 -0
- package/src/models/UsageAmountType.ts +53 -0
- package/src/models/UsageBreakdownLabel.ts +53 -0
- package/src/models/UsageItem.ts +64 -0
- package/src/models/UsageItemBreakdownInner.ts +91 -0
- package/src/models/WorkspaceSubscriptionCreditOperationCosts.ts +10 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fabric API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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.instanceOfUpdateResourceRequest = instanceOfUpdateResourceRequest;
|
|
17
|
+
exports.UpdateResourceRequestFromJSON = UpdateResourceRequestFromJSON;
|
|
18
|
+
exports.UpdateResourceRequestFromJSONTyped = UpdateResourceRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateResourceRequestToJSON = UpdateResourceRequestToJSON;
|
|
20
|
+
exports.UpdateResourceRequestToJSONTyped = UpdateResourceRequestToJSONTyped;
|
|
21
|
+
const UpdateResourceRequestLocation_1 = require("./UpdateResourceRequestLocation");
|
|
22
|
+
const CreateFolderRequestIcon_1 = require("./CreateFolderRequestIcon");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UpdateResourceRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUpdateResourceRequest(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateResourceRequestFromJSON(json) {
|
|
30
|
+
return UpdateResourceRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateResourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
const result = {};
|
|
37
|
+
if (json['name'] !== undefined) {
|
|
38
|
+
result['name'] = json['name'];
|
|
39
|
+
}
|
|
40
|
+
if (json['description'] !== undefined) {
|
|
41
|
+
if (json['description'] === null) {
|
|
42
|
+
result['description'] = null;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
result['description'] = json['description'];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (json['icon'] !== undefined) {
|
|
49
|
+
if (json['icon'] === null) {
|
|
50
|
+
result['icon'] = null;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
result['icon'] = (0, CreateFolderRequestIcon_1.CreateFolderRequestIconFromJSON)(json['icon']);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (json['coverStoragePath'] !== undefined) {
|
|
57
|
+
if (json['coverStoragePath'] === null) {
|
|
58
|
+
result['coverStoragePath'] = null;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
result['coverStoragePath'] = json['coverStoragePath'];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (json['location'] !== undefined) {
|
|
65
|
+
result['location'] = (0, UpdateResourceRequestLocation_1.UpdateResourceRequestLocationFromJSON)(json['location']);
|
|
66
|
+
}
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
function UpdateResourceRequestToJSON(json) {
|
|
70
|
+
return UpdateResourceRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function UpdateResourceRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'description': value['description'],
|
|
79
|
+
'icon': (0, CreateFolderRequestIcon_1.CreateFolderRequestIconToJSON)(value['icon']),
|
|
80
|
+
'coverStoragePath': value['coverStoragePath'],
|
|
81
|
+
'location': (0, UpdateResourceRequestLocation_1.UpdateResourceRequestLocationToJSON)(value['location']),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fabric API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 UpdateResourceRequestLocation
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateResourceRequestLocation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateResourceRequestLocation
|
|
22
|
+
*/
|
|
23
|
+
'insertBeforeId': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateResourceRequestLocation
|
|
28
|
+
*/
|
|
29
|
+
'insertAfterId': string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateResourceRequestLocation interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateResourceRequestLocation(value: object): value is UpdateResourceRequestLocation;
|
|
35
|
+
export declare function UpdateResourceRequestLocationFromJSON(json: any): UpdateResourceRequestLocation;
|
|
36
|
+
export declare function UpdateResourceRequestLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResourceRequestLocation;
|
|
37
|
+
export declare function UpdateResourceRequestLocationToJSON(json: any): UpdateResourceRequestLocation;
|
|
38
|
+
export declare function UpdateResourceRequestLocationToJSONTyped(value?: UpdateResourceRequestLocation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fabric API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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.instanceOfUpdateResourceRequestLocation = instanceOfUpdateResourceRequestLocation;
|
|
17
|
+
exports.UpdateResourceRequestLocationFromJSON = UpdateResourceRequestLocationFromJSON;
|
|
18
|
+
exports.UpdateResourceRequestLocationFromJSONTyped = UpdateResourceRequestLocationFromJSONTyped;
|
|
19
|
+
exports.UpdateResourceRequestLocationToJSON = UpdateResourceRequestLocationToJSON;
|
|
20
|
+
exports.UpdateResourceRequestLocationToJSONTyped = UpdateResourceRequestLocationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateResourceRequestLocation interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateResourceRequestLocation(value) {
|
|
25
|
+
if (!('insertBeforeId' in value) || value['insertBeforeId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('insertAfterId' in value) || value['insertAfterId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UpdateResourceRequestLocationFromJSON(json) {
|
|
32
|
+
return UpdateResourceRequestLocationFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UpdateResourceRequestLocationFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
const result = {};
|
|
39
|
+
if (json['insertBeforeId'] !== undefined) {
|
|
40
|
+
result['insertBeforeId'] = json['insertBeforeId'];
|
|
41
|
+
}
|
|
42
|
+
if (json['insertAfterId'] !== undefined) {
|
|
43
|
+
result['insertAfterId'] = json['insertAfterId'];
|
|
44
|
+
}
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
function UpdateResourceRequestLocationToJSON(json) {
|
|
48
|
+
return UpdateResourceRequestLocationToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UpdateResourceRequestLocationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'insertBeforeId': value['insertBeforeId'],
|
|
56
|
+
'insertAfterId': value['insertAfterId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fabric API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
*/
|
|
16
|
+
export declare const UsageAmountType: {
|
|
17
|
+
readonly Consumed: "consumed";
|
|
18
|
+
readonly Remaining: "remaining";
|
|
19
|
+
};
|
|
20
|
+
export type UsageAmountType = typeof UsageAmountType[keyof typeof UsageAmountType];
|
|
21
|
+
export declare function instanceOfUsageAmountType(value: any): boolean;
|
|
22
|
+
export declare function UsageAmountTypeFromJSON(json: any): UsageAmountType;
|
|
23
|
+
export declare function UsageAmountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageAmountType;
|
|
24
|
+
export declare function UsageAmountTypeToJSON(value?: UsageAmountType | null): any;
|
|
25
|
+
export declare function UsageAmountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): UsageAmountType;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fabric API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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.UsageAmountType = void 0;
|
|
17
|
+
exports.instanceOfUsageAmountType = instanceOfUsageAmountType;
|
|
18
|
+
exports.UsageAmountTypeFromJSON = UsageAmountTypeFromJSON;
|
|
19
|
+
exports.UsageAmountTypeFromJSONTyped = UsageAmountTypeFromJSONTyped;
|
|
20
|
+
exports.UsageAmountTypeToJSON = UsageAmountTypeToJSON;
|
|
21
|
+
exports.UsageAmountTypeToJSONTyped = UsageAmountTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.UsageAmountType = {
|
|
27
|
+
Consumed: 'consumed',
|
|
28
|
+
Remaining: 'remaining'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfUsageAmountType(value) {
|
|
31
|
+
for (const key in exports.UsageAmountType) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.UsageAmountType, key)) {
|
|
33
|
+
if (exports.UsageAmountType[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function UsageAmountTypeFromJSON(json) {
|
|
41
|
+
return UsageAmountTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UsageAmountTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function UsageAmountTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function UsageAmountTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fabric API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
*/
|
|
16
|
+
export declare const UsageBreakdownLabel: {
|
|
17
|
+
readonly ToppedUp: "topped_up";
|
|
18
|
+
readonly Included: "included";
|
|
19
|
+
};
|
|
20
|
+
export type UsageBreakdownLabel = typeof UsageBreakdownLabel[keyof typeof UsageBreakdownLabel];
|
|
21
|
+
export declare function instanceOfUsageBreakdownLabel(value: any): boolean;
|
|
22
|
+
export declare function UsageBreakdownLabelFromJSON(json: any): UsageBreakdownLabel;
|
|
23
|
+
export declare function UsageBreakdownLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageBreakdownLabel;
|
|
24
|
+
export declare function UsageBreakdownLabelToJSON(value?: UsageBreakdownLabel | null): any;
|
|
25
|
+
export declare function UsageBreakdownLabelToJSONTyped(value: any, ignoreDiscriminator: boolean): UsageBreakdownLabel;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fabric API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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.UsageBreakdownLabel = void 0;
|
|
17
|
+
exports.instanceOfUsageBreakdownLabel = instanceOfUsageBreakdownLabel;
|
|
18
|
+
exports.UsageBreakdownLabelFromJSON = UsageBreakdownLabelFromJSON;
|
|
19
|
+
exports.UsageBreakdownLabelFromJSONTyped = UsageBreakdownLabelFromJSONTyped;
|
|
20
|
+
exports.UsageBreakdownLabelToJSON = UsageBreakdownLabelToJSON;
|
|
21
|
+
exports.UsageBreakdownLabelToJSONTyped = UsageBreakdownLabelToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.UsageBreakdownLabel = {
|
|
27
|
+
ToppedUp: 'topped_up',
|
|
28
|
+
Included: 'included'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfUsageBreakdownLabel(value) {
|
|
31
|
+
for (const key in exports.UsageBreakdownLabel) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.UsageBreakdownLabel, key)) {
|
|
33
|
+
if (exports.UsageBreakdownLabel[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function UsageBreakdownLabelFromJSON(json) {
|
|
41
|
+
return UsageBreakdownLabelFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UsageBreakdownLabelFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function UsageBreakdownLabelToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function UsageBreakdownLabelToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -9,12 +9,38 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UsageItemBreakdownInner } from './UsageItemBreakdownInner';
|
|
13
|
+
import type { UsageAmountType } from './UsageAmountType';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
15
17
|
* @interface UsageItem
|
|
16
18
|
*/
|
|
17
19
|
export interface UsageItem {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof UsageItem
|
|
24
|
+
*/
|
|
25
|
+
'total': number | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof UsageItem
|
|
30
|
+
*/
|
|
31
|
+
'amount': number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {UsageAmountType}
|
|
35
|
+
* @memberof UsageItem
|
|
36
|
+
*/
|
|
37
|
+
'amountType': UsageAmountType;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<UsageItemBreakdownInner>}
|
|
41
|
+
* @memberof UsageItem
|
|
42
|
+
*/
|
|
43
|
+
'breakdown'?: Array<UsageItemBreakdownInner>;
|
|
18
44
|
/**
|
|
19
45
|
*
|
|
20
46
|
* @type {number}
|
package/dist/models/UsageItem.js
CHANGED
|
@@ -18,10 +18,18 @@ exports.UsageItemFromJSON = UsageItemFromJSON;
|
|
|
18
18
|
exports.UsageItemFromJSONTyped = UsageItemFromJSONTyped;
|
|
19
19
|
exports.UsageItemToJSON = UsageItemToJSON;
|
|
20
20
|
exports.UsageItemToJSONTyped = UsageItemToJSONTyped;
|
|
21
|
+
const UsageItemBreakdownInner_1 = require("./UsageItemBreakdownInner");
|
|
22
|
+
const UsageAmountType_1 = require("./UsageAmountType");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the UsageItem interface.
|
|
23
25
|
*/
|
|
24
26
|
function instanceOfUsageItem(value) {
|
|
27
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('amountType' in value) || value['amountType'] === undefined)
|
|
32
|
+
return false;
|
|
25
33
|
if (!('limit' in value) || value['limit'] === undefined)
|
|
26
34
|
return false;
|
|
27
35
|
if (!('used' in value) || value['used'] === undefined)
|
|
@@ -36,6 +44,23 @@ function UsageItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
44
|
return json;
|
|
37
45
|
}
|
|
38
46
|
const result = {};
|
|
47
|
+
if (json['total'] !== undefined) {
|
|
48
|
+
if (json['total'] === null) {
|
|
49
|
+
result['total'] = null;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
result['total'] = json['total'];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (json['amount'] !== undefined) {
|
|
56
|
+
result['amount'] = json['amount'];
|
|
57
|
+
}
|
|
58
|
+
if (json['amountType'] !== undefined) {
|
|
59
|
+
result['amountType'] = (0, UsageAmountType_1.UsageAmountTypeFromJSON)(json['amountType']);
|
|
60
|
+
}
|
|
61
|
+
if (json['breakdown'] !== undefined) {
|
|
62
|
+
result['breakdown'] = json['breakdown'].map(UsageItemBreakdownInner_1.UsageItemBreakdownInnerFromJSON);
|
|
63
|
+
}
|
|
39
64
|
if (json['limit'] !== undefined) {
|
|
40
65
|
if (json['limit'] === null) {
|
|
41
66
|
result['limit'] = null;
|
|
@@ -57,6 +82,10 @@ function UsageItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
82
|
return value;
|
|
58
83
|
}
|
|
59
84
|
return {
|
|
85
|
+
'total': value['total'],
|
|
86
|
+
'amount': value['amount'],
|
|
87
|
+
'amountType': (0, UsageAmountType_1.UsageAmountTypeToJSON)(value['amountType']),
|
|
88
|
+
'breakdown': value['breakdown'] == null ? undefined : (value['breakdown'].map(UsageItemBreakdownInner_1.UsageItemBreakdownInnerToJSON)),
|
|
60
89
|
'limit': value['limit'],
|
|
61
90
|
'used': value['used'],
|
|
62
91
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fabric API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 { UsageBreakdownLabel } from './UsageBreakdownLabel';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UsageItemBreakdownInner
|
|
17
|
+
*/
|
|
18
|
+
export interface UsageItemBreakdownInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {UsageBreakdownLabel}
|
|
22
|
+
* @memberof UsageItemBreakdownInner
|
|
23
|
+
*/
|
|
24
|
+
'label': UsageBreakdownLabel;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof UsageItemBreakdownInner
|
|
29
|
+
*/
|
|
30
|
+
'amount': number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UsageItemBreakdownInner interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUsageItemBreakdownInner(value: object): value is UsageItemBreakdownInner;
|
|
36
|
+
export declare function UsageItemBreakdownInnerFromJSON(json: any): UsageItemBreakdownInner;
|
|
37
|
+
export declare function UsageItemBreakdownInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageItemBreakdownInner;
|
|
38
|
+
export declare function UsageItemBreakdownInnerToJSON(json: any): UsageItemBreakdownInner;
|
|
39
|
+
export declare function UsageItemBreakdownInnerToJSONTyped(value?: UsageItemBreakdownInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fabric API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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.instanceOfUsageItemBreakdownInner = instanceOfUsageItemBreakdownInner;
|
|
17
|
+
exports.UsageItemBreakdownInnerFromJSON = UsageItemBreakdownInnerFromJSON;
|
|
18
|
+
exports.UsageItemBreakdownInnerFromJSONTyped = UsageItemBreakdownInnerFromJSONTyped;
|
|
19
|
+
exports.UsageItemBreakdownInnerToJSON = UsageItemBreakdownInnerToJSON;
|
|
20
|
+
exports.UsageItemBreakdownInnerToJSONTyped = UsageItemBreakdownInnerToJSONTyped;
|
|
21
|
+
const UsageBreakdownLabel_1 = require("./UsageBreakdownLabel");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UsageItemBreakdownInner interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUsageItemBreakdownInner(value) {
|
|
26
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function UsageItemBreakdownInnerFromJSON(json) {
|
|
33
|
+
return UsageItemBreakdownInnerFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function UsageItemBreakdownInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
const result = {};
|
|
40
|
+
if (json['label'] !== undefined) {
|
|
41
|
+
result['label'] = (0, UsageBreakdownLabel_1.UsageBreakdownLabelFromJSON)(json['label']);
|
|
42
|
+
}
|
|
43
|
+
if (json['amount'] !== undefined) {
|
|
44
|
+
result['amount'] = json['amount'];
|
|
45
|
+
}
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
function UsageItemBreakdownInnerToJSON(json) {
|
|
49
|
+
return UsageItemBreakdownInnerToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function UsageItemBreakdownInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'label': (0, UsageBreakdownLabel_1.UsageBreakdownLabelToJSON)(value['label']),
|
|
57
|
+
'amount': value['amount'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fabric API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
*/
|
|
16
|
+
export declare const UtmSources: {
|
|
17
|
+
readonly Facebook: "facebook";
|
|
18
|
+
};
|
|
19
|
+
export type UtmSources = typeof UtmSources[keyof typeof UtmSources];
|
|
20
|
+
export declare function instanceOfUtmSources(value: any): boolean;
|
|
21
|
+
export declare function UtmSourcesFromJSON(json: any): UtmSources;
|
|
22
|
+
export declare function UtmSourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): UtmSources;
|
|
23
|
+
export declare function UtmSourcesToJSON(value?: UtmSources | null): any;
|
|
24
|
+
export declare function UtmSourcesToJSONTyped(value: any, ignoreDiscriminator: boolean): UtmSources;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fabric API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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.UtmSources = void 0;
|
|
17
|
+
exports.instanceOfUtmSources = instanceOfUtmSources;
|
|
18
|
+
exports.UtmSourcesFromJSON = UtmSourcesFromJSON;
|
|
19
|
+
exports.UtmSourcesFromJSONTyped = UtmSourcesFromJSONTyped;
|
|
20
|
+
exports.UtmSourcesToJSON = UtmSourcesToJSON;
|
|
21
|
+
exports.UtmSourcesToJSONTyped = UtmSourcesToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.UtmSources = {
|
|
27
|
+
Facebook: 'facebook'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfUtmSources(value) {
|
|
30
|
+
for (const key in exports.UtmSources) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.UtmSources, key)) {
|
|
32
|
+
if (exports.UtmSources[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
function UtmSourcesFromJSON(json) {
|
|
40
|
+
return UtmSourcesFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function UtmSourcesFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
function UtmSourcesToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
function UtmSourcesToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fabric API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 V2WorkspaceDeletionConfirmationPostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface V2WorkspaceDeletionConfirmationPostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof V2WorkspaceDeletionConfirmationPostRequest
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the V2WorkspaceDeletionConfirmationPostRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfV2WorkspaceDeletionConfirmationPostRequest(value: object): value is V2WorkspaceDeletionConfirmationPostRequest;
|
|
29
|
+
export declare function V2WorkspaceDeletionConfirmationPostRequestFromJSON(json: any): V2WorkspaceDeletionConfirmationPostRequest;
|
|
30
|
+
export declare function V2WorkspaceDeletionConfirmationPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WorkspaceDeletionConfirmationPostRequest;
|
|
31
|
+
export declare function V2WorkspaceDeletionConfirmationPostRequestToJSON(json: any): V2WorkspaceDeletionConfirmationPostRequest;
|
|
32
|
+
export declare function V2WorkspaceDeletionConfirmationPostRequestToJSONTyped(value?: V2WorkspaceDeletionConfirmationPostRequest | null, ignoreDiscriminator?: boolean): any;
|