@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
|
@@ -64,6 +64,12 @@ export interface SearchRequestAllOfFilters {
|
|
|
64
64
|
* @memberof SearchRequestAllOfFilters
|
|
65
65
|
*/
|
|
66
66
|
'tagIds'?: Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof SearchRequestAllOfFilters
|
|
71
|
+
*/
|
|
72
|
+
'userId'?: string;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {Array<string>}
|
|
@@ -67,6 +67,9 @@ export function SearchRequestAllOfFiltersFromJSONTyped(json, ignoreDiscriminator
|
|
|
67
67
|
if (json['tagIds'] !== undefined) {
|
|
68
68
|
result['tagIds'] = json['tagIds'];
|
|
69
69
|
}
|
|
70
|
+
if (json['userId'] !== undefined) {
|
|
71
|
+
result['userId'] = json['userId'];
|
|
72
|
+
}
|
|
70
73
|
if (json['userIds'] !== undefined) {
|
|
71
74
|
result['userIds'] = json['userIds'];
|
|
72
75
|
}
|
|
@@ -104,6 +107,7 @@ export function SearchRequestAllOfFiltersToJSONTyped(value, ignoreDiscriminator
|
|
|
104
107
|
'roots': value['roots'] == null ? undefined : (value['roots'].map(SearchRequestAllOfFiltersRootsInnerToJSON)),
|
|
105
108
|
'excludeRoots': value['excludeRoots'] == null ? undefined : (value['excludeRoots'].map(SearchRequestAllOfFiltersRootsInnerToJSON)),
|
|
106
109
|
'tagIds': value['tagIds'],
|
|
110
|
+
'userId': value['userId'],
|
|
107
111
|
'userIds': value['userIds'],
|
|
108
112
|
'createdAfter': value['createdAfter'],
|
|
109
113
|
'createdBefore': value['createdBefore'],
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { UpdateResourceRequestLocation } from './UpdateResourceRequestLocation';
|
|
13
|
+
import type { CreateFolderRequestIcon } from './CreateFolderRequestIcon';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdateResourceRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateResourceRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UpdateResourceRequest
|
|
24
|
+
*/
|
|
25
|
+
'name'?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UpdateResourceRequest
|
|
30
|
+
*/
|
|
31
|
+
'description'?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {CreateFolderRequestIcon}
|
|
35
|
+
* @memberof UpdateResourceRequest
|
|
36
|
+
*/
|
|
37
|
+
'icon'?: CreateFolderRequestIcon | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof UpdateResourceRequest
|
|
42
|
+
*/
|
|
43
|
+
'coverStoragePath'?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {UpdateResourceRequestLocation}
|
|
47
|
+
* @memberof UpdateResourceRequest
|
|
48
|
+
*/
|
|
49
|
+
'location'?: UpdateResourceRequestLocation;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the UpdateResourceRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfUpdateResourceRequest(value: object): value is UpdateResourceRequest;
|
|
55
|
+
export declare function UpdateResourceRequestFromJSON(json: any): UpdateResourceRequest;
|
|
56
|
+
export declare function UpdateResourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResourceRequest;
|
|
57
|
+
export declare function UpdateResourceRequestToJSON(json: any): UpdateResourceRequest;
|
|
58
|
+
export declare function UpdateResourceRequestToJSONTyped(value?: UpdateResourceRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fabric API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 { UpdateResourceRequestLocationFromJSON, UpdateResourceRequestLocationToJSON, } from './UpdateResourceRequestLocation';
|
|
15
|
+
import { CreateFolderRequestIconFromJSON, CreateFolderRequestIconToJSON, } from './CreateFolderRequestIcon';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the UpdateResourceRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfUpdateResourceRequest(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function UpdateResourceRequestFromJSON(json) {
|
|
23
|
+
return UpdateResourceRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function UpdateResourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
const result = {};
|
|
30
|
+
if (json['name'] !== undefined) {
|
|
31
|
+
result['name'] = json['name'];
|
|
32
|
+
}
|
|
33
|
+
if (json['description'] !== undefined) {
|
|
34
|
+
if (json['description'] === null) {
|
|
35
|
+
result['description'] = null;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
result['description'] = json['description'];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
if (json['icon'] !== undefined) {
|
|
42
|
+
if (json['icon'] === null) {
|
|
43
|
+
result['icon'] = null;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
result['icon'] = CreateFolderRequestIconFromJSON(json['icon']);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (json['coverStoragePath'] !== undefined) {
|
|
50
|
+
if (json['coverStoragePath'] === null) {
|
|
51
|
+
result['coverStoragePath'] = null;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
result['coverStoragePath'] = json['coverStoragePath'];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (json['location'] !== undefined) {
|
|
58
|
+
result['location'] = UpdateResourceRequestLocationFromJSON(json['location']);
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
62
|
+
export function UpdateResourceRequestToJSON(json) {
|
|
63
|
+
return UpdateResourceRequestToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function UpdateResourceRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'description': value['description'],
|
|
72
|
+
'icon': CreateFolderRequestIconToJSON(value['icon']),
|
|
73
|
+
'coverStoragePath': value['coverStoragePath'],
|
|
74
|
+
'location': UpdateResourceRequestLocationToJSON(value['location']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -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,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fabric API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 UpdateResourceRequestLocation interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUpdateResourceRequestLocation(value) {
|
|
18
|
+
if (!('insertBeforeId' in value) || value['insertBeforeId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('insertAfterId' in value) || value['insertAfterId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function UpdateResourceRequestLocationFromJSON(json) {
|
|
25
|
+
return UpdateResourceRequestLocationFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function UpdateResourceRequestLocationFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const result = {};
|
|
32
|
+
if (json['insertBeforeId'] !== undefined) {
|
|
33
|
+
result['insertBeforeId'] = json['insertBeforeId'];
|
|
34
|
+
}
|
|
35
|
+
if (json['insertAfterId'] !== undefined) {
|
|
36
|
+
result['insertAfterId'] = json['insertAfterId'];
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
export function UpdateResourceRequestLocationToJSON(json) {
|
|
41
|
+
return UpdateResourceRequestLocationToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function UpdateResourceRequestLocationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'insertBeforeId': value['insertBeforeId'],
|
|
49
|
+
'insertAfterId': value['insertAfterId'],
|
|
50
|
+
};
|
|
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 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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fabric API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const UsageAmountType = {
|
|
19
|
+
Consumed: 'consumed',
|
|
20
|
+
Remaining: 'remaining'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfUsageAmountType(value) {
|
|
23
|
+
for (const key in UsageAmountType) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(UsageAmountType, key)) {
|
|
25
|
+
if (UsageAmountType[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function UsageAmountTypeFromJSON(json) {
|
|
33
|
+
return UsageAmountTypeFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function UsageAmountTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function UsageAmountTypeToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function UsageAmountTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -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,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fabric API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const UsageBreakdownLabel = {
|
|
19
|
+
ToppedUp: 'topped_up',
|
|
20
|
+
Included: 'included'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfUsageBreakdownLabel(value) {
|
|
23
|
+
for (const key in UsageBreakdownLabel) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(UsageBreakdownLabel, key)) {
|
|
25
|
+
if (UsageBreakdownLabel[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function UsageBreakdownLabelFromJSON(json) {
|
|
33
|
+
return UsageBreakdownLabelFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function UsageBreakdownLabelFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function UsageBreakdownLabelToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function UsageBreakdownLabelToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -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}
|
|
@@ -11,10 +11,18 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { UsageItemBreakdownInnerFromJSON, UsageItemBreakdownInnerToJSON, } from './UsageItemBreakdownInner';
|
|
15
|
+
import { UsageAmountTypeFromJSON, UsageAmountTypeToJSON, } from './UsageAmountType';
|
|
14
16
|
/**
|
|
15
17
|
* Check if a given object implements the UsageItem interface.
|
|
16
18
|
*/
|
|
17
19
|
export function instanceOfUsageItem(value) {
|
|
20
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('amountType' in value) || value['amountType'] === undefined)
|
|
25
|
+
return false;
|
|
18
26
|
if (!('limit' in value) || value['limit'] === undefined)
|
|
19
27
|
return false;
|
|
20
28
|
if (!('used' in value) || value['used'] === undefined)
|
|
@@ -29,6 +37,23 @@ export function UsageItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
37
|
return json;
|
|
30
38
|
}
|
|
31
39
|
const result = {};
|
|
40
|
+
if (json['total'] !== undefined) {
|
|
41
|
+
if (json['total'] === null) {
|
|
42
|
+
result['total'] = null;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
result['total'] = json['total'];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (json['amount'] !== undefined) {
|
|
49
|
+
result['amount'] = json['amount'];
|
|
50
|
+
}
|
|
51
|
+
if (json['amountType'] !== undefined) {
|
|
52
|
+
result['amountType'] = UsageAmountTypeFromJSON(json['amountType']);
|
|
53
|
+
}
|
|
54
|
+
if (json['breakdown'] !== undefined) {
|
|
55
|
+
result['breakdown'] = json['breakdown'].map(UsageItemBreakdownInnerFromJSON);
|
|
56
|
+
}
|
|
32
57
|
if (json['limit'] !== undefined) {
|
|
33
58
|
if (json['limit'] === null) {
|
|
34
59
|
result['limit'] = null;
|
|
@@ -50,6 +75,10 @@ export function UsageItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
75
|
return value;
|
|
51
76
|
}
|
|
52
77
|
return {
|
|
78
|
+
'total': value['total'],
|
|
79
|
+
'amount': value['amount'],
|
|
80
|
+
'amountType': UsageAmountTypeToJSON(value['amountType']),
|
|
81
|
+
'breakdown': value['breakdown'] == null ? undefined : (value['breakdown'].map(UsageItemBreakdownInnerToJSON)),
|
|
53
82
|
'limit': value['limit'],
|
|
54
83
|
'used': value['used'],
|
|
55
84
|
};
|
|
@@ -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,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fabric API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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 { UsageBreakdownLabelFromJSON, UsageBreakdownLabelToJSON, } from './UsageBreakdownLabel';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the UsageItemBreakdownInner interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfUsageItemBreakdownInner(value) {
|
|
19
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function UsageItemBreakdownInnerFromJSON(json) {
|
|
26
|
+
return UsageItemBreakdownInnerFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function UsageItemBreakdownInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const result = {};
|
|
33
|
+
if (json['label'] !== undefined) {
|
|
34
|
+
result['label'] = UsageBreakdownLabelFromJSON(json['label']);
|
|
35
|
+
}
|
|
36
|
+
if (json['amount'] !== undefined) {
|
|
37
|
+
result['amount'] = json['amount'];
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
export function UsageItemBreakdownInnerToJSON(json) {
|
|
42
|
+
return UsageItemBreakdownInnerToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function UsageItemBreakdownInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'label': UsageBreakdownLabelToJSON(value['label']),
|
|
50
|
+
'amount': value['amount'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fabric API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const UtmSources = {
|
|
19
|
+
Facebook: 'facebook'
|
|
20
|
+
};
|
|
21
|
+
export function instanceOfUtmSources(value) {
|
|
22
|
+
for (const key in UtmSources) {
|
|
23
|
+
if (Object.prototype.hasOwnProperty.call(UtmSources, key)) {
|
|
24
|
+
if (UtmSources[key] === value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
export function UtmSourcesFromJSON(json) {
|
|
32
|
+
return UtmSourcesFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function UtmSourcesFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
export function UtmSourcesToJSON(value) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
export function UtmSourcesToJSONTyped(value, ignoreDiscriminator) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|