@fbrc/sdk 0.0.11 → 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.
Files changed (106) hide show
  1. package/.openapi-generator/FILES +8 -5
  2. package/dist/apis/MemoriesApi.d.ts +104 -0
  3. package/dist/apis/MemoriesApi.js +273 -0
  4. package/dist/apis/ResourceRootsApi.d.ts +49 -0
  5. package/dist/apis/ResourceRootsApi.js +127 -0
  6. package/dist/apis/SubscriptionsApi.d.ts +30 -0
  7. package/dist/apis/SubscriptionsApi.js +69 -0
  8. package/dist/apis/UsersApi.d.ts +29 -0
  9. package/dist/apis/UsersApi.js +66 -0
  10. package/dist/apis/WorkspaceApi.d.ts +13 -5
  11. package/dist/apis/WorkspaceApi.js +12 -5
  12. package/dist/apis/WorkspacesApi.d.ts +97 -0
  13. package/dist/apis/WorkspacesApi.js +256 -0
  14. package/dist/apis/index.d.ts +5 -5
  15. package/dist/apis/index.js +5 -5
  16. package/dist/esm/apis/MemoriesApi.d.ts +104 -0
  17. package/dist/esm/apis/MemoriesApi.js +269 -0
  18. package/dist/esm/apis/ResourceRootsApi.d.ts +49 -0
  19. package/dist/esm/apis/ResourceRootsApi.js +123 -0
  20. package/dist/esm/apis/SubscriptionsApi.d.ts +30 -0
  21. package/dist/esm/apis/SubscriptionsApi.js +65 -0
  22. package/dist/esm/apis/UsersApi.d.ts +29 -0
  23. package/dist/esm/apis/UsersApi.js +62 -0
  24. package/dist/esm/apis/WorkspaceApi.d.ts +13 -5
  25. package/dist/esm/apis/WorkspaceApi.js +11 -4
  26. package/dist/esm/apis/WorkspacesApi.d.ts +97 -0
  27. package/dist/esm/apis/WorkspacesApi.js +252 -0
  28. package/dist/esm/apis/index.d.ts +5 -5
  29. package/dist/esm/apis/index.js +5 -5
  30. package/dist/esm/index.d.ts +2 -1
  31. package/dist/esm/index.js +1 -1
  32. package/dist/esm/models/ChatbotModel.d.ts +8 -8
  33. package/dist/esm/models/ChatbotModel.js +8 -8
  34. package/dist/esm/models/CreateBookmarkRequestLocation.d.ts +38 -0
  35. package/dist/esm/models/CreateBookmarkRequestLocation.js +51 -0
  36. package/dist/esm/models/CreateBookmarkRequestLocationAnyOf.d.ts +32 -0
  37. package/dist/esm/models/CreateBookmarkRequestLocationAnyOf.js +45 -0
  38. package/dist/esm/models/CreateBookmarkRequestLocationAnyOf1.d.ts +32 -0
  39. package/dist/esm/models/CreateBookmarkRequestLocationAnyOf1.js +45 -0
  40. package/dist/esm/models/PlanEntitlements.d.ts +6 -0
  41. package/dist/esm/models/PlanEntitlements.js +4 -0
  42. package/dist/esm/models/SearchRequestAllOfFilters.d.ts +6 -0
  43. package/dist/esm/models/SearchRequestAllOfFilters.js +4 -0
  44. package/dist/esm/models/UpdateResourceRequest.d.ts +58 -0
  45. package/dist/esm/models/UpdateResourceRequest.js +76 -0
  46. package/dist/esm/models/UpdateResourceRequestLocation.d.ts +38 -0
  47. package/dist/esm/models/UpdateResourceRequestLocation.js +51 -0
  48. package/dist/esm/models/UsageAmountType.d.ts +25 -0
  49. package/dist/esm/models/UsageAmountType.js +43 -0
  50. package/dist/esm/models/UsageBreakdownLabel.d.ts +25 -0
  51. package/dist/esm/models/UsageBreakdownLabel.js +43 -0
  52. package/dist/esm/models/UsageItem.d.ts +26 -0
  53. package/dist/esm/models/UsageItem.js +29 -0
  54. package/dist/esm/models/UsageItemBreakdownInner.d.ts +39 -0
  55. package/dist/esm/models/UsageItemBreakdownInner.js +52 -0
  56. package/dist/esm/models/WorkspaceSubscriptionCreditOperationCosts.d.ts +6 -0
  57. package/dist/esm/models/WorkspaceSubscriptionCreditOperationCosts.js +4 -0
  58. package/dist/esm/models/index.d.ts +3 -0
  59. package/dist/esm/models/index.js +3 -0
  60. package/dist/index.d.ts +2 -1
  61. package/dist/index.js +1 -1
  62. package/dist/models/ChatbotModel.d.ts +8 -8
  63. package/dist/models/ChatbotModel.js +8 -8
  64. package/dist/models/CreateBookmarkRequestLocation.d.ts +38 -0
  65. package/dist/models/CreateBookmarkRequestLocation.js +58 -0
  66. package/dist/models/CreateBookmarkRequestLocationAnyOf.d.ts +32 -0
  67. package/dist/models/CreateBookmarkRequestLocationAnyOf.js +52 -0
  68. package/dist/models/CreateBookmarkRequestLocationAnyOf1.d.ts +32 -0
  69. package/dist/models/CreateBookmarkRequestLocationAnyOf1.js +52 -0
  70. package/dist/models/PlanEntitlements.d.ts +6 -0
  71. package/dist/models/PlanEntitlements.js +4 -0
  72. package/dist/models/SearchRequestAllOfFilters.d.ts +6 -0
  73. package/dist/models/SearchRequestAllOfFilters.js +4 -0
  74. package/dist/models/UpdateResourceRequest.d.ts +58 -0
  75. package/dist/models/UpdateResourceRequest.js +83 -0
  76. package/dist/models/UpdateResourceRequestLocation.d.ts +38 -0
  77. package/dist/models/UpdateResourceRequestLocation.js +58 -0
  78. package/dist/models/UsageAmountType.d.ts +25 -0
  79. package/dist/models/UsageAmountType.js +51 -0
  80. package/dist/models/UsageBreakdownLabel.d.ts +25 -0
  81. package/dist/models/UsageBreakdownLabel.js +51 -0
  82. package/dist/models/UsageItem.d.ts +26 -0
  83. package/dist/models/UsageItem.js +29 -0
  84. package/dist/models/UsageItemBreakdownInner.d.ts +39 -0
  85. package/dist/models/UsageItemBreakdownInner.js +59 -0
  86. package/dist/models/WorkspaceSubscriptionCreditOperationCosts.d.ts +6 -0
  87. package/dist/models/WorkspaceSubscriptionCreditOperationCosts.js +4 -0
  88. package/dist/models/index.d.ts +3 -0
  89. package/dist/models/index.js +3 -0
  90. package/package.json +1 -1
  91. package/src/apis/{MemoryApi.ts → MemoriesApi.ts} +1 -1
  92. package/src/apis/{ResourceRootApi.ts → ResourceRootsApi.ts} +1 -1
  93. package/src/apis/{SubscriptionApi.ts → SubscriptionsApi.ts} +1 -1
  94. package/src/apis/{UserProfileApi.ts → UsersApi.ts} +1 -1
  95. package/src/apis/{WorkspaceApi.ts → WorkspacesApi.ts} +15 -6
  96. package/src/apis/index.ts +5 -5
  97. package/src/index.ts +3 -1
  98. package/src/models/ChatbotModel.ts +8 -8
  99. package/src/models/PlanEntitlements.ts +10 -0
  100. package/src/models/SearchRequestAllOfFilters.ts +10 -0
  101. package/src/models/UsageAmountType.ts +53 -0
  102. package/src/models/UsageBreakdownLabel.ts +53 -0
  103. package/src/models/UsageItem.ts +64 -0
  104. package/src/models/UsageItemBreakdownInner.ts +91 -0
  105. package/src/models/WorkspaceSubscriptionCreditOperationCosts.ts +10 -0
  106. package/src/models/index.ts +3 -0
@@ -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 CreateBookmarkRequestLocation interface.
16
+ */
17
+ export function instanceOfCreateBookmarkRequestLocation(value) {
18
+ if (!('insertAfterId' in value) || value['insertAfterId'] === undefined)
19
+ return false;
20
+ if (!('insertBeforeId' in value) || value['insertBeforeId'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CreateBookmarkRequestLocationFromJSON(json) {
25
+ return CreateBookmarkRequestLocationFromJSONTyped(json, false);
26
+ }
27
+ export function CreateBookmarkRequestLocationFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ const result = {};
32
+ if (json['insertAfterId'] !== undefined) {
33
+ result['insertAfterId'] = json['insertAfterId'];
34
+ }
35
+ if (json['insertBeforeId'] !== undefined) {
36
+ result['insertBeforeId'] = json['insertBeforeId'];
37
+ }
38
+ return result;
39
+ }
40
+ export function CreateBookmarkRequestLocationToJSON(json) {
41
+ return CreateBookmarkRequestLocationToJSONTyped(json, false);
42
+ }
43
+ export function CreateBookmarkRequestLocationToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'insertAfterId': value['insertAfterId'],
49
+ 'insertBeforeId': value['insertBeforeId'],
50
+ };
51
+ }
@@ -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 CreateBookmarkRequestLocationAnyOf
16
+ */
17
+ export interface CreateBookmarkRequestLocationAnyOf {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateBookmarkRequestLocationAnyOf
22
+ */
23
+ 'insertAfterId': string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateBookmarkRequestLocationAnyOf interface.
27
+ */
28
+ export declare function instanceOfCreateBookmarkRequestLocationAnyOf(value: object): value is CreateBookmarkRequestLocationAnyOf;
29
+ export declare function CreateBookmarkRequestLocationAnyOfFromJSON(json: any): CreateBookmarkRequestLocationAnyOf;
30
+ export declare function CreateBookmarkRequestLocationAnyOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBookmarkRequestLocationAnyOf;
31
+ export declare function CreateBookmarkRequestLocationAnyOfToJSON(json: any): CreateBookmarkRequestLocationAnyOf;
32
+ export declare function CreateBookmarkRequestLocationAnyOfToJSONTyped(value?: CreateBookmarkRequestLocationAnyOf | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 CreateBookmarkRequestLocationAnyOf interface.
16
+ */
17
+ export function instanceOfCreateBookmarkRequestLocationAnyOf(value) {
18
+ if (!('insertAfterId' in value) || value['insertAfterId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function CreateBookmarkRequestLocationAnyOfFromJSON(json) {
23
+ return CreateBookmarkRequestLocationAnyOfFromJSONTyped(json, false);
24
+ }
25
+ export function CreateBookmarkRequestLocationAnyOfFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ const result = {};
30
+ if (json['insertAfterId'] !== undefined) {
31
+ result['insertAfterId'] = json['insertAfterId'];
32
+ }
33
+ return result;
34
+ }
35
+ export function CreateBookmarkRequestLocationAnyOfToJSON(json) {
36
+ return CreateBookmarkRequestLocationAnyOfToJSONTyped(json, false);
37
+ }
38
+ export function CreateBookmarkRequestLocationAnyOfToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'insertAfterId': value['insertAfterId'],
44
+ };
45
+ }
@@ -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 CreateBookmarkRequestLocationAnyOf1
16
+ */
17
+ export interface CreateBookmarkRequestLocationAnyOf1 {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateBookmarkRequestLocationAnyOf1
22
+ */
23
+ 'insertBeforeId': string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateBookmarkRequestLocationAnyOf1 interface.
27
+ */
28
+ export declare function instanceOfCreateBookmarkRequestLocationAnyOf1(value: object): value is CreateBookmarkRequestLocationAnyOf1;
29
+ export declare function CreateBookmarkRequestLocationAnyOf1FromJSON(json: any): CreateBookmarkRequestLocationAnyOf1;
30
+ export declare function CreateBookmarkRequestLocationAnyOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBookmarkRequestLocationAnyOf1;
31
+ export declare function CreateBookmarkRequestLocationAnyOf1ToJSON(json: any): CreateBookmarkRequestLocationAnyOf1;
32
+ export declare function CreateBookmarkRequestLocationAnyOf1ToJSONTyped(value?: CreateBookmarkRequestLocationAnyOf1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 CreateBookmarkRequestLocationAnyOf1 interface.
16
+ */
17
+ export function instanceOfCreateBookmarkRequestLocationAnyOf1(value) {
18
+ if (!('insertBeforeId' in value) || value['insertBeforeId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function CreateBookmarkRequestLocationAnyOf1FromJSON(json) {
23
+ return CreateBookmarkRequestLocationAnyOf1FromJSONTyped(json, false);
24
+ }
25
+ export function CreateBookmarkRequestLocationAnyOf1FromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ const result = {};
30
+ if (json['insertBeforeId'] !== undefined) {
31
+ result['insertBeforeId'] = json['insertBeforeId'];
32
+ }
33
+ return result;
34
+ }
35
+ export function CreateBookmarkRequestLocationAnyOf1ToJSON(json) {
36
+ return CreateBookmarkRequestLocationAnyOf1ToJSONTyped(json, false);
37
+ }
38
+ export function CreateBookmarkRequestLocationAnyOf1ToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'insertBeforeId': value['insertBeforeId'],
44
+ };
45
+ }
@@ -123,6 +123,12 @@ export interface PlanEntitlements {
123
123
  * @memberof PlanEntitlements
124
124
  */
125
125
  'maxDelegatedWorkspaces'?: number;
126
+ /**
127
+ *
128
+ * @type {boolean}
129
+ * @memberof PlanEntitlements
130
+ */
131
+ 'webSearchEnabled'?: boolean;
126
132
  }
127
133
  /**
128
134
  * Check if a given object implements the PlanEntitlements interface.
@@ -107,6 +107,9 @@ export function PlanEntitlementsFromJSONTyped(json, ignoreDiscriminator) {
107
107
  if (json['maxDelegatedWorkspaces'] !== undefined) {
108
108
  result['maxDelegatedWorkspaces'] = json['maxDelegatedWorkspaces'];
109
109
  }
110
+ if (json['webSearchEnabled'] !== undefined) {
111
+ result['webSearchEnabled'] = json['webSearchEnabled'];
112
+ }
110
113
  return result;
111
114
  }
112
115
  export function PlanEntitlementsToJSON(json) {
@@ -135,5 +138,6 @@ export function PlanEntitlementsToJSONTyped(value, ignoreDiscriminator = false)
135
138
  'requestsPerHour': value['requestsPerHour'],
136
139
  'unitPricePerGB': value['unitPricePerGB'],
137
140
  'maxDelegatedWorkspaces': value['maxDelegatedWorkspaces'],
141
+ 'webSearchEnabled': value['webSearchEnabled'],
138
142
  };
139
143
  }
@@ -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}