@fbrc/sdk 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/DefaultApi.d.ts +89 -0
- package/dist/apis/DefaultApi.js +249 -0
- package/dist/apis/WorkspaceApi.d.ts +2 -2
- package/dist/apis/WorkspaceApi.js +9 -9
- package/dist/esm/apis/DefaultApi.d.ts +89 -0
- package/dist/esm/apis/DefaultApi.js +245 -0
- package/dist/esm/apis/WorkspaceApi.d.ts +2 -2
- package/dist/esm/apis/WorkspaceApi.js +9 -9
- 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/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/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/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/package.json +1 -1
- package/src/apis/WorkspaceApi.ts +9 -9
|
@@ -0,0 +1,245 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { AcceptWorkspaceRemovalRequestToJSON, CreateWorkspaceRequestToJSON, ListWorkspaces200ResponseFromJSON, PatchWorkspaceRequestToJSON, WorkspaceFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class DefaultApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Delete workspace
|
|
31
|
+
*/
|
|
32
|
+
acceptRemovalRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
37
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
38
|
+
// oauth required
|
|
39
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
|
|
40
|
+
}
|
|
41
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
42
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
43
|
+
}
|
|
44
|
+
let urlPath = `/v2/workspace/deletion-confirmation`;
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
body: AcceptWorkspaceRemovalRequestToJSON(requestParameters),
|
|
51
|
+
}, initOverrides);
|
|
52
|
+
return new runtime.VoidApiResponse(response);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Delete workspace
|
|
57
|
+
*/
|
|
58
|
+
acceptRemoval(requestParameters, initOverrides) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
yield this.acceptRemovalRaw(requestParameters, initOverrides);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Create a new team workspace
|
|
65
|
+
*/
|
|
66
|
+
createRaw(requestParameters, initOverrides) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const queryParameters = {};
|
|
69
|
+
const headerParameters = {};
|
|
70
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
71
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
72
|
+
// oauth required
|
|
73
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
|
|
74
|
+
}
|
|
75
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
76
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
77
|
+
}
|
|
78
|
+
let urlPath = `/v2/workspace`;
|
|
79
|
+
const response = yield this.request({
|
|
80
|
+
path: urlPath,
|
|
81
|
+
method: 'POST',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
body: CreateWorkspaceRequestToJSON(requestParameters),
|
|
85
|
+
}, initOverrides);
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkspaceFromJSON(jsonValue));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Create a new team workspace
|
|
91
|
+
*/
|
|
92
|
+
create(requestParameters, initOverrides) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const response = yield this.createRaw(requestParameters, initOverrides);
|
|
95
|
+
return yield response.value();
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Currently selected workspace
|
|
100
|
+
*/
|
|
101
|
+
currentRaw() {
|
|
102
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
103
|
+
const queryParameters = {};
|
|
104
|
+
const headerParameters = {};
|
|
105
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
106
|
+
// oauth required
|
|
107
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
|
|
108
|
+
}
|
|
109
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
110
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
111
|
+
}
|
|
112
|
+
let urlPath = `/v2/workspace/me`;
|
|
113
|
+
const response = yield this.request({
|
|
114
|
+
path: urlPath,
|
|
115
|
+
method: 'GET',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkspaceFromJSON(jsonValue));
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Currently selected workspace
|
|
124
|
+
*/
|
|
125
|
+
current() {
|
|
126
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
127
|
+
const response = yield this.currentRaw(requestParameters, initOverrides);
|
|
128
|
+
return yield response.value();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Workspaces I have access to
|
|
133
|
+
*/
|
|
134
|
+
listRaw() {
|
|
135
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
136
|
+
const queryParameters = {};
|
|
137
|
+
if (requestParameters['limit'] != null) {
|
|
138
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['offset'] != null) {
|
|
141
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
142
|
+
}
|
|
143
|
+
if (requestParameters['search'] != null) {
|
|
144
|
+
queryParameters['search'] = requestParameters['search'];
|
|
145
|
+
}
|
|
146
|
+
if (requestParameters['parentWorkspaceId'] != null) {
|
|
147
|
+
queryParameters['parentWorkspaceId'] = requestParameters['parentWorkspaceId'];
|
|
148
|
+
}
|
|
149
|
+
const headerParameters = {};
|
|
150
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
151
|
+
// oauth required
|
|
152
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
|
|
153
|
+
}
|
|
154
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
155
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
156
|
+
}
|
|
157
|
+
let urlPath = `/v2/workspace`;
|
|
158
|
+
const response = yield this.request({
|
|
159
|
+
path: urlPath,
|
|
160
|
+
method: 'GET',
|
|
161
|
+
headers: headerParameters,
|
|
162
|
+
query: queryParameters,
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListWorkspaces200ResponseFromJSON(jsonValue));
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Workspaces I have access to
|
|
169
|
+
*/
|
|
170
|
+
list() {
|
|
171
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
172
|
+
const response = yield this.listRaw(requestParameters, initOverrides);
|
|
173
|
+
return yield response.value();
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Update workspace
|
|
178
|
+
*/
|
|
179
|
+
patchRaw(requestParameters, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
const queryParameters = {};
|
|
182
|
+
const headerParameters = {};
|
|
183
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
184
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
185
|
+
// oauth required
|
|
186
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
|
|
187
|
+
}
|
|
188
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
189
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
190
|
+
}
|
|
191
|
+
let urlPath = `/v2/workspace`;
|
|
192
|
+
const response = yield this.request({
|
|
193
|
+
path: urlPath,
|
|
194
|
+
method: 'PATCH',
|
|
195
|
+
headers: headerParameters,
|
|
196
|
+
query: queryParameters,
|
|
197
|
+
body: PatchWorkspaceRequestToJSON(requestParameters),
|
|
198
|
+
}, initOverrides);
|
|
199
|
+
return new runtime.VoidApiResponse(response);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Update workspace
|
|
204
|
+
*/
|
|
205
|
+
patch(requestParameters, initOverrides) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
yield this.patchRaw(requestParameters, initOverrides);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Accept workspace deletion request
|
|
212
|
+
*/
|
|
213
|
+
removeRaw() {
|
|
214
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
215
|
+
const queryParameters = {};
|
|
216
|
+
if (requestParameters['force'] != null) {
|
|
217
|
+
queryParameters['force'] = requestParameters['force'];
|
|
218
|
+
}
|
|
219
|
+
const headerParameters = {};
|
|
220
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
221
|
+
// oauth required
|
|
222
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
|
|
223
|
+
}
|
|
224
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
225
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
226
|
+
}
|
|
227
|
+
let urlPath = `/v2/workspace`;
|
|
228
|
+
const response = yield this.request({
|
|
229
|
+
path: urlPath,
|
|
230
|
+
method: 'DELETE',
|
|
231
|
+
headers: headerParameters,
|
|
232
|
+
query: queryParameters,
|
|
233
|
+
}, initOverrides);
|
|
234
|
+
return new runtime.VoidApiResponse(response);
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Accept workspace deletion request
|
|
239
|
+
*/
|
|
240
|
+
remove() {
|
|
241
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
242
|
+
yield this.removeRaw(requestParameters, initOverrides);
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
@@ -57,11 +57,11 @@ export declare class WorkspaceApi extends runtime.BaseAPI {
|
|
|
57
57
|
/**
|
|
58
58
|
* Get workspace
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
getRaw(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
|
|
61
61
|
/**
|
|
62
62
|
* Get workspace
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
get(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
|
|
65
65
|
/**
|
|
66
66
|
* List workspaces
|
|
67
67
|
*/
|
|
@@ -41,7 +41,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
41
41
|
if (this.configuration && this.configuration.apiKey) {
|
|
42
42
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
43
43
|
}
|
|
44
|
-
let urlPath = `/v2/
|
|
44
|
+
let urlPath = `/v2/workspaces/deletion-confirmation`;
|
|
45
45
|
const response = yield this.request({
|
|
46
46
|
path: urlPath,
|
|
47
47
|
method: 'POST',
|
|
@@ -75,7 +75,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
75
75
|
if (this.configuration && this.configuration.apiKey) {
|
|
76
76
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
77
77
|
}
|
|
78
|
-
let urlPath = `/v2/
|
|
78
|
+
let urlPath = `/v2/workspaces`;
|
|
79
79
|
const response = yield this.request({
|
|
80
80
|
path: urlPath,
|
|
81
81
|
method: 'POST',
|
|
@@ -98,7 +98,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
98
98
|
/**
|
|
99
99
|
* Get workspace
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
getRaw() {
|
|
102
102
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
103
103
|
const queryParameters = {};
|
|
104
104
|
const headerParameters = {};
|
|
@@ -109,7 +109,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
109
109
|
if (this.configuration && this.configuration.apiKey) {
|
|
110
110
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
111
111
|
}
|
|
112
|
-
let urlPath = `/v2/
|
|
112
|
+
let urlPath = `/v2/workspaces/me`;
|
|
113
113
|
const response = yield this.request({
|
|
114
114
|
path: urlPath,
|
|
115
115
|
method: 'GET',
|
|
@@ -122,9 +122,9 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
122
122
|
/**
|
|
123
123
|
* Get workspace
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
get() {
|
|
126
126
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
127
|
-
const response = yield this.
|
|
127
|
+
const response = yield this.getRaw(requestParameters, initOverrides);
|
|
128
128
|
return yield response.value();
|
|
129
129
|
});
|
|
130
130
|
}
|
|
@@ -154,7 +154,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
154
154
|
if (this.configuration && this.configuration.apiKey) {
|
|
155
155
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
156
156
|
}
|
|
157
|
-
let urlPath = `/v2/
|
|
157
|
+
let urlPath = `/v2/workspaces`;
|
|
158
158
|
const response = yield this.request({
|
|
159
159
|
path: urlPath,
|
|
160
160
|
method: 'GET',
|
|
@@ -188,7 +188,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
188
188
|
if (this.configuration && this.configuration.apiKey) {
|
|
189
189
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
190
190
|
}
|
|
191
|
-
let urlPath = `/v2/
|
|
191
|
+
let urlPath = `/v2/workspaces`;
|
|
192
192
|
const response = yield this.request({
|
|
193
193
|
path: urlPath,
|
|
194
194
|
method: 'PATCH',
|
|
@@ -224,7 +224,7 @@ export class WorkspaceApi extends runtime.BaseAPI {
|
|
|
224
224
|
if (this.configuration && this.configuration.apiKey) {
|
|
225
225
|
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
226
226
|
}
|
|
227
|
-
let urlPath = `/v2/
|
|
227
|
+
let urlPath = `/v2/workspaces`;
|
|
228
228
|
const response = yield this.request({
|
|
229
229
|
path: urlPath,
|
|
230
230
|
method: 'DELETE',
|
|
@@ -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 DeleteResourcesRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteResourcesRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof DeleteResourcesRequest
|
|
22
|
+
*/
|
|
23
|
+
resourceIds: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof DeleteResourcesRequest
|
|
28
|
+
*/
|
|
29
|
+
archive?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DeleteResourcesRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDeleteResourcesRequest(value: object): value is DeleteResourcesRequest;
|
|
35
|
+
export declare function DeleteResourcesRequestFromJSON(json: any): DeleteResourcesRequest;
|
|
36
|
+
export declare function DeleteResourcesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteResourcesRequest;
|
|
37
|
+
export declare function DeleteResourcesRequestToJSON(json: any): DeleteResourcesRequest;
|
|
38
|
+
export declare function DeleteResourcesRequestToJSONTyped(value?: DeleteResourcesRequest | 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 DeleteResourcesRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDeleteResourcesRequest(value) {
|
|
18
|
+
if (!('resourceIds' in value) || value['resourceIds'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function DeleteResourcesRequestFromJSON(json) {
|
|
23
|
+
return DeleteResourcesRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function DeleteResourcesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'resourceIds': json['resourceIds'],
|
|
31
|
+
'archive': json['archive'] == null ? undefined : json['archive'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function DeleteResourcesRequestToJSON(json) {
|
|
35
|
+
return DeleteResourcesRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function DeleteResourcesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'resourceIds': value['resourceIds'],
|
|
43
|
+
'archive': value['archive'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 DeleteSpace404Response
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteSpace404Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeleteSpace404Response
|
|
22
|
+
*/
|
|
23
|
+
title: DeleteSpace404ResponseTitleEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DeleteSpace404Response
|
|
28
|
+
*/
|
|
29
|
+
detail: DeleteSpace404ResponseDetailEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const DeleteSpace404ResponseTitleEnum: {
|
|
35
|
+
readonly NotFound: "Not Found";
|
|
36
|
+
};
|
|
37
|
+
export type DeleteSpace404ResponseTitleEnum = typeof DeleteSpace404ResponseTitleEnum[keyof typeof DeleteSpace404ResponseTitleEnum];
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const DeleteSpace404ResponseDetailEnum: {
|
|
42
|
+
readonly SpaceNotFound: "space_not_found";
|
|
43
|
+
};
|
|
44
|
+
export type DeleteSpace404ResponseDetailEnum = typeof DeleteSpace404ResponseDetailEnum[keyof typeof DeleteSpace404ResponseDetailEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the DeleteSpace404Response interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfDeleteSpace404Response(value: object): value is DeleteSpace404Response;
|
|
49
|
+
export declare function DeleteSpace404ResponseFromJSON(json: any): DeleteSpace404Response;
|
|
50
|
+
export declare function DeleteSpace404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteSpace404Response;
|
|
51
|
+
export declare function DeleteSpace404ResponseToJSON(json: any): DeleteSpace404Response;
|
|
52
|
+
export declare function DeleteSpace404ResponseToJSONTyped(value?: DeleteSpace404Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const DeleteSpace404ResponseTitleEnum = {
|
|
18
|
+
NotFound: 'Not Found'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const DeleteSpace404ResponseDetailEnum = {
|
|
24
|
+
SpaceNotFound: 'space_not_found'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the DeleteSpace404Response interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfDeleteSpace404Response(value) {
|
|
30
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function DeleteSpace404ResponseFromJSON(json) {
|
|
37
|
+
return DeleteSpace404ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function DeleteSpace404ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'title': json['title'],
|
|
45
|
+
'detail': json['detail'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function DeleteSpace404ResponseToJSON(json) {
|
|
49
|
+
return DeleteSpace404ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function DeleteSpace404ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'title': value['title'],
|
|
57
|
+
'detail': value['detail'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { UtmSources } from './UtmSources';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MarketingCampaignSource
|
|
17
|
+
*/
|
|
18
|
+
export interface MarketingCampaignSource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {UtmSources}
|
|
22
|
+
* @memberof MarketingCampaignSource
|
|
23
|
+
*/
|
|
24
|
+
'utm_source'?: UtmSources;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MarketingCampaignSource
|
|
29
|
+
*/
|
|
30
|
+
'utm_medium'?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MarketingCampaignSource
|
|
35
|
+
*/
|
|
36
|
+
'utm_campaign'?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof MarketingCampaignSource
|
|
41
|
+
*/
|
|
42
|
+
'utm_campaign_id'?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof MarketingCampaignSource
|
|
47
|
+
*/
|
|
48
|
+
'utm_ad_id'?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof MarketingCampaignSource
|
|
53
|
+
*/
|
|
54
|
+
'utm_adset_id'?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof MarketingCampaignSource
|
|
59
|
+
*/
|
|
60
|
+
'fbclid'?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the MarketingCampaignSource interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfMarketingCampaignSource(value: object): value is MarketingCampaignSource;
|
|
66
|
+
export declare function MarketingCampaignSourceFromJSON(json: any): MarketingCampaignSource;
|
|
67
|
+
export declare function MarketingCampaignSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketingCampaignSource;
|
|
68
|
+
export declare function MarketingCampaignSourceToJSON(json: any): MarketingCampaignSource;
|
|
69
|
+
export declare function MarketingCampaignSourceToJSONTyped(value?: MarketingCampaignSource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { UtmSourcesFromJSON, UtmSourcesToJSON, } from './UtmSources';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the MarketingCampaignSource interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfMarketingCampaignSource(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function MarketingCampaignSourceFromJSON(json) {
|
|
22
|
+
return MarketingCampaignSourceFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function MarketingCampaignSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
const result = {};
|
|
29
|
+
if (json['utm_source'] !== undefined) {
|
|
30
|
+
result['utm_source'] = UtmSourcesFromJSON(json['utm_source']);
|
|
31
|
+
}
|
|
32
|
+
if (json['utm_medium'] !== undefined) {
|
|
33
|
+
result['utm_medium'] = json['utm_medium'];
|
|
34
|
+
}
|
|
35
|
+
if (json['utm_campaign'] !== undefined) {
|
|
36
|
+
result['utm_campaign'] = json['utm_campaign'];
|
|
37
|
+
}
|
|
38
|
+
if (json['utm_campaign_id'] !== undefined) {
|
|
39
|
+
result['utm_campaign_id'] = json['utm_campaign_id'];
|
|
40
|
+
}
|
|
41
|
+
if (json['utm_ad_id'] !== undefined) {
|
|
42
|
+
result['utm_ad_id'] = json['utm_ad_id'];
|
|
43
|
+
}
|
|
44
|
+
if (json['utm_adset_id'] !== undefined) {
|
|
45
|
+
result['utm_adset_id'] = json['utm_adset_id'];
|
|
46
|
+
}
|
|
47
|
+
if (json['fbclid'] !== undefined) {
|
|
48
|
+
result['fbclid'] = json['fbclid'];
|
|
49
|
+
}
|
|
50
|
+
return result;
|
|
51
|
+
}
|
|
52
|
+
export function MarketingCampaignSourceToJSON(json) {
|
|
53
|
+
return MarketingCampaignSourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function MarketingCampaignSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'utm_source': UtmSourcesToJSON(value['utm_source']),
|
|
61
|
+
'utm_medium': value['utm_medium'],
|
|
62
|
+
'utm_campaign': value['utm_campaign'],
|
|
63
|
+
'utm_campaign_id': value['utm_campaign_id'],
|
|
64
|
+
'utm_ad_id': value['utm_ad_id'],
|
|
65
|
+
'utm_adset_id': value['utm_adset_id'],
|
|
66
|
+
'fbclid': value['fbclid'],
|
|
67
|
+
};
|
|
68
|
+
}
|