rtc4js 1.2.0 → 1.3.0

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 (41) hide show
  1. package/README.md +31 -0
  2. package/dist/index.d.ts +9 -0
  3. package/dist/index.js +19 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/rapid-table-connector.d.ts +3 -0
  6. package/dist/rapid-table-connector.js +17 -0
  7. package/dist/rapid-table-connector.js.map +1 -1
  8. package/dist/resource/drive/drive-put-object-request.d.ts +18 -0
  9. package/dist/resource/drive/drive-put-object-request.js +70 -0
  10. package/dist/resource/drive/drive-put-object-request.js.map +1 -0
  11. package/dist/resource/import-package-request.interface.d.ts +8 -0
  12. package/dist/resource/import-package-request.interface.js +3 -0
  13. package/dist/resource/import-package-request.interface.js.map +1 -0
  14. package/dist/resource/path-config.d.ts +2 -0
  15. package/dist/resource/path-config.js +2 -0
  16. package/dist/resource/path-config.js.map +1 -1
  17. package/dist/resource/project/project-create-request.d.ts +26 -0
  18. package/dist/resource/project/project-create-request.js +62 -0
  19. package/dist/resource/project/project-create-request.js.map +1 -0
  20. package/dist/resource/project/project-export-package-request.d.ts +136 -0
  21. package/dist/resource/project/project-export-package-request.js +274 -0
  22. package/dist/resource/project/project-export-package-request.js.map +1 -0
  23. package/dist/resource/project/project-generate-id-request.d.ts +15 -0
  24. package/dist/resource/project/project-generate-id-request.js +53 -0
  25. package/dist/resource/project/project-generate-id-request.js.map +1 -0
  26. package/dist/resource/project/project-import-package-request.d.ts +30 -0
  27. package/dist/resource/project/project-import-package-request.js +84 -0
  28. package/dist/resource/project/project-import-package-request.js.map +1 -0
  29. package/dist/resource/project/project-put-cover-request.d.ts +20 -0
  30. package/dist/resource/project/project-put-cover-request.js +68 -0
  31. package/dist/resource/project/project-put-cover-request.js.map +1 -0
  32. package/dist/resource/project/project-request-model.d.ts +12 -0
  33. package/dist/resource/project/project-request-model.js +30 -0
  34. package/dist/resource/project/project-request-model.js.map +1 -0
  35. package/dist/resource/report/import-failed-report.d.ts +9 -0
  36. package/dist/resource/report/import-failed-report.js +27 -0
  37. package/dist/resource/report/import-failed-report.js.map +1 -0
  38. package/dist/resource/report/report-get-canvas-object-request.d.ts +22 -0
  39. package/dist/resource/report/report-get-canvas-object-request.js +63 -0
  40. package/dist/resource/report/report-get-canvas-object-request.js.map +1 -0
  41. package/package.json +1 -1
@@ -0,0 +1,274 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Rapid Table, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the 'License').
6
+ * You may not use this file except in compliance with the License. A copy of the License is located at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR
11
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ProjectExportPackageRequest = void 0;
16
+ const path_config_1 = require("../path-config");
17
+ class ProjectExportPackageRequest {
18
+ constructor(path, query) {
19
+ this.path = path;
20
+ this.query = query;
21
+ }
22
+ getPath() {
23
+ return this.path;
24
+ }
25
+ getQuery() {
26
+ return this.query;
27
+ }
28
+ getBody() {
29
+ return null;
30
+ }
31
+ static builder() {
32
+ return new Builder();
33
+ }
34
+ }
35
+ exports.ProjectExportPackageRequest = ProjectExportPackageRequest;
36
+ class Builder {
37
+ constructor() {
38
+ this._workspaceId = null;
39
+ this._projectId = null;
40
+ this._page = null;
41
+ this._size = null;
42
+ this._asc = null;
43
+ this._desc = null;
44
+ this._query = null;
45
+ this._emp = null;
46
+ this._noemp = null;
47
+ this._includes = [];
48
+ this._in = [];
49
+ this._eq = null;
50
+ this._neq = null;
51
+ this._lt = null;
52
+ this._lte = null;
53
+ this._gt = null;
54
+ this._gte = null;
55
+ this._term = null;
56
+ }
57
+ build() {
58
+ const path = path_config_1.PathConfig.ROOT +
59
+ path_config_1.PathConfig.WORKSPACE +
60
+ `/${this._workspaceId}` +
61
+ path_config_1.PathConfig.PROJECTS +
62
+ `/${this._projectId}` +
63
+ '/package/export';
64
+ const params = {};
65
+ if (this._page) {
66
+ params['page'] = this._page;
67
+ }
68
+ if (this._size) {
69
+ params['size'] = this._size;
70
+ }
71
+ if (this._asc) {
72
+ params['asc'] = this._asc;
73
+ }
74
+ if (this._desc) {
75
+ params['desc'] = this._desc;
76
+ }
77
+ if (this._query) {
78
+ params['query'] = this._query;
79
+ }
80
+ if (this._emp) {
81
+ params['emp'] = this._emp;
82
+ }
83
+ if (this._noemp) {
84
+ params['noemp'] = this._noemp;
85
+ }
86
+ if (Array.isArray(this._includes) && this._includes.length > 0) {
87
+ params['includes'] = this._includes.join(';');
88
+ }
89
+ if (Array.isArray(this._in) && this._in.length > 0) {
90
+ params['in'] = this._in.join(';');
91
+ }
92
+ if (this._eq) {
93
+ params['eq'] = this._eq;
94
+ }
95
+ if (this._neq) {
96
+ params['neq'] = this._neq;
97
+ }
98
+ if (this._lt) {
99
+ params['lt'] = this._lt;
100
+ }
101
+ if (this._lte) {
102
+ params['lte'] = this._lte;
103
+ }
104
+ if (this._gt) {
105
+ params['gt'] = this._gt;
106
+ }
107
+ if (this._gte) {
108
+ params['gte'] = this._gte;
109
+ }
110
+ if (this._term) {
111
+ params['term'] = this._term;
112
+ }
113
+ return new ProjectExportPackageRequest(path, params);
114
+ }
115
+ workspaceId(workspaceId) {
116
+ this._workspaceId = workspaceId;
117
+ return this;
118
+ }
119
+ projectId(projectId) {
120
+ this._projectId = projectId;
121
+ return this;
122
+ }
123
+ page(page) {
124
+ this._page = page;
125
+ return this;
126
+ }
127
+ size(size) {
128
+ this._size = size;
129
+ return this;
130
+ }
131
+ /**
132
+ * Ascending sort field.
133
+ * - Any
134
+ * asc=fieldId
135
+ * - Creation date
136
+ * asc=cdt
137
+ * - Update Date
138
+ * asc=udt
139
+ */
140
+ asc(fieldId) {
141
+ this._asc = fieldId;
142
+ return this;
143
+ }
144
+ /**
145
+ * Descending sort field.
146
+ * - Any
147
+ * desc=fieldId
148
+ * - Creation date
149
+ * desc=cdt
150
+ * - Update Date
151
+ * desc=udt
152
+ */
153
+ desc(fieldId) {
154
+ this._desc = fieldId;
155
+ return this;
156
+ }
157
+ /**
158
+ * Search string.
159
+ * query=searchText
160
+ */
161
+ query(query) {
162
+ this._query = query;
163
+ return this;
164
+ }
165
+ /**
166
+ * Word search (blank fields only).
167
+ * emp=fieldId
168
+ */
169
+ emp(fieldId) {
170
+ this._emp = fieldId;
171
+ return this;
172
+ }
173
+ /**
174
+ * Word search (non-blank fields only).
175
+ * noemp=fieldId
176
+ */
177
+ noemp(fieldId) {
178
+ this._noemp = fieldId;
179
+ return this;
180
+ }
181
+ /**
182
+ * Exact match for specific field.
183
+ * includes=fieldId1:searchText1;fieldId2:searchText2
184
+ * - For example, the arguments are as follows
185
+ * 'fieldId1:searchText1', 'fieldId2:searchText2',...
186
+ */
187
+ includes(...includes) {
188
+ this._includes.push(...includes);
189
+ return this;
190
+ }
191
+ /**
192
+ * Partial match for specific field.
193
+ * in=fieldId1:searchText1;fieldId2:searchText2
194
+ * - For example, the arguments are as follows
195
+ * 'fieldId1:searchText1', 'fieldId2:searchText2',...
196
+ */
197
+ in(...value) {
198
+ this._in.push(...value);
199
+ return this;
200
+ }
201
+ /**
202
+ * Numeric value (equals).
203
+ * eq=fieldId:123
204
+ */
205
+ eq(fieldId, value) {
206
+ this._eq = `${fieldId}:${value}`;
207
+ return this;
208
+ }
209
+ /**
210
+ * Numeric value (not equal).
211
+ * eq=fieldId:123
212
+ */
213
+ neq(fieldId, value) {
214
+ this._neq = `${fieldId}:${value}`;
215
+ return this;
216
+ }
217
+ /**
218
+ * Numeric value (less than).
219
+ * eq=fieldId:123
220
+ */
221
+ lt(fieldId, value) {
222
+ this._lt = `${fieldId}:${value}`;
223
+ return this;
224
+ }
225
+ /**
226
+ * Numeric value (less than or equal to).
227
+ * eq=fieldId:123
228
+ */
229
+ lte(fieldId, value) {
230
+ this._lte = `${fieldId}:${value}`;
231
+ return this;
232
+ }
233
+ /**
234
+ * Numeric value (greater than).
235
+ * eq=fieldId:123
236
+ */
237
+ gt(fieldId, value) {
238
+ this._gt = `${fieldId}:${value}`;
239
+ return this;
240
+ }
241
+ /**
242
+ * Numeric value (grater than or equal to).
243
+ * eq=fieldId:123
244
+ */
245
+ gte(fieldId, value) {
246
+ this._gte = `${fieldId}:${value}`;
247
+ return this;
248
+ }
249
+ /**
250
+ * Date type period search (range).
251
+ * yyyy-MM-dd
252
+ */
253
+ term(fieldId, from, to) {
254
+ this._term = `${fieldId}:${from},${to}`;
255
+ return this;
256
+ }
257
+ /**
258
+ * Date type period search (from).
259
+ * yyyy-MM-dd
260
+ */
261
+ termFrom(fieldId, from) {
262
+ this._term = `${fieldId}:${from},`;
263
+ return this;
264
+ }
265
+ /**
266
+ * Date type period search (to).
267
+ * yyyy-MM-dd
268
+ */
269
+ termTo(fieldId, to) {
270
+ this._term = `${fieldId}:,${to}`;
271
+ return this;
272
+ }
273
+ }
274
+ //# sourceMappingURL=project-export-package-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-export-package-request.js","sourceRoot":"","sources":["../../../src/resource/project/project-export-package-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,gDAA4C;AAG5C,MAAa,2BAA2B;IACtC,YACS,IAAY,EACZ,KAAyC;QADzC,SAAI,GAAJ,IAAI,CAAQ;QACZ,UAAK,GAAL,KAAK,CAAoC;IAC/C,CAAC;IAEG,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,OAAO;QACnB,OAAO,IAAI,OAAO,EAAE,CAA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AE,CAAC;QAClC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,OAAe,EAAE,IAAY,EAAE,EAAU;QACnD,IAAI,CAAC,KAAK,GAAG,GAAG,OAAO,IAAI,IAAI,IAAI,EAAE,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,OAAe,EAAE,IAAY;QAC3C,IAAI,CAAC,KAAK,GAAG,GAAG,OAAO,IAAI,IAAI,GAAG,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,OAAe,EAAE,EAAU;QACvC,IAAI,CAAC,KAAK,GAAG,GAAG,OAAO,KAAK,EAAE,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -0,0 +1,15 @@
1
+ import { IGenerateIdRequest } from '../generate-id-request.interface';
2
+ export declare class ProjectGenerateIdRequest implements IGenerateIdRequest {
3
+ path: string;
4
+ constructor(path: string);
5
+ getPath(): string;
6
+ getQuery(): string | null;
7
+ getBody(): string | null;
8
+ static builder(): Builder;
9
+ }
10
+ declare class Builder {
11
+ private _workspaceId;
12
+ build(): ProjectGenerateIdRequest;
13
+ workspaceId(workspaceId: string): Builder;
14
+ }
15
+ export {};
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Rapid Table, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the 'License').
6
+ * You may not use this file except in compliance with the License. A copy of the License is located at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR
11
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ProjectGenerateIdRequest = void 0;
16
+ const path_config_1 = require("../path-config");
17
+ class ProjectGenerateIdRequest {
18
+ constructor(path) {
19
+ this.path = path;
20
+ this.path = path;
21
+ }
22
+ getPath() {
23
+ return this.path;
24
+ }
25
+ getQuery() {
26
+ return null;
27
+ }
28
+ getBody() {
29
+ return null;
30
+ }
31
+ static builder() {
32
+ return new Builder();
33
+ }
34
+ }
35
+ exports.ProjectGenerateIdRequest = ProjectGenerateIdRequest;
36
+ class Builder {
37
+ constructor() {
38
+ this._workspaceId = null;
39
+ }
40
+ build() {
41
+ const path = path_config_1.PathConfig.ROOT +
42
+ path_config_1.PathConfig.WORKSPACE +
43
+ `/${this._workspaceId}` +
44
+ path_config_1.PathConfig.PROJECTS +
45
+ '/generateId';
46
+ return new ProjectGenerateIdRequest(path);
47
+ }
48
+ workspaceId(workspaceId) {
49
+ this._workspaceId = workspaceId;
50
+ return this;
51
+ }
52
+ }
53
+ //# sourceMappingURL=project-generate-id-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-generate-id-request.js","sourceRoot":"","sources":["../../../src/resource/project/project-generate-id-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAGH,gDAA4C;AAE5C,MAAa,wBAAwB;IACnC,YAAmB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,OAAO;QACnB,OAAO,IAAI,OAAO,EAAE,CAAC;IACvB,CAAC;CACF;AApBD,4DAoBC;AAED,MAAM,OAAO;IAAb;QACU,iBAAY,GAAkB,IAAI,CAAC;IAiB7C,CAAC;IAfQ,KAAK;QACV,MAAM,IAAI,GACR,wBAAU,CAAC,IAAI;YACf,wBAAU,CAAC,SAAS;YACpB,IAAI,IAAI,CAAC,YAAY,EAAE;YACvB,wBAAU,CAAC,QAAQ;YACnB,aAAa,CAAC;QAEhB,OAAO,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAEM,WAAW,CAAC,WAAmB;QACpC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -0,0 +1,30 @@
1
+ import FormData from 'form-data';
2
+ import { IImportPackageRequest } from '../import-package-request.interface';
3
+ export declare class ProjectImportPackageRequest implements IImportPackageRequest {
4
+ path: string;
5
+ query: {
6
+ [key: string]: string | number;
7
+ };
8
+ formData: FormData;
9
+ constructor(path: string, query: {
10
+ [key: string]: string | number;
11
+ }, formData: FormData);
12
+ getPath(): string;
13
+ getQuery(): {
14
+ [key: string]: string | number;
15
+ };
16
+ getFormData(): any;
17
+ static builder(): Builder;
18
+ }
19
+ declare class Builder {
20
+ private _workspaceId;
21
+ private _projectId;
22
+ private _isForceUseReportId;
23
+ private _formData;
24
+ build(): ProjectImportPackageRequest;
25
+ workspaceId(workspaceId: string): Builder;
26
+ projectId(projectId: string): Builder;
27
+ forceUseReportId(isForceUseReportId: boolean): Builder;
28
+ append(buffer: any): Builder;
29
+ }
30
+ export {};
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Rapid Table, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the 'License').
6
+ * You may not use this file except in compliance with the License. A copy of the License is located at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR
11
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ var __importDefault = (this && this.__importDefault) || function (mod) {
15
+ return (mod && mod.__esModule) ? mod : { "default": mod };
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ProjectImportPackageRequest = void 0;
19
+ const form_data_1 = __importDefault(require("form-data"));
20
+ const path_config_1 = require("../path-config");
21
+ class ProjectImportPackageRequest {
22
+ constructor(path, query, formData) {
23
+ this.path = path;
24
+ this.query = query;
25
+ this.formData = formData;
26
+ }
27
+ getPath() {
28
+ return this.path;
29
+ }
30
+ getQuery() {
31
+ return this.query;
32
+ }
33
+ getFormData() {
34
+ return this.formData;
35
+ }
36
+ static builder() {
37
+ return new Builder();
38
+ }
39
+ }
40
+ exports.ProjectImportPackageRequest = ProjectImportPackageRequest;
41
+ class Builder {
42
+ constructor() {
43
+ this._workspaceId = null;
44
+ this._projectId = null;
45
+ this._isForceUseReportId = false;
46
+ this._formData = null;
47
+ }
48
+ build() {
49
+ const path = path_config_1.PathConfig.ROOT +
50
+ path_config_1.PathConfig.WORKSPACE +
51
+ `/${this._workspaceId}` +
52
+ path_config_1.PathConfig.PROJECTS +
53
+ `/${this._projectId}` +
54
+ '/package/import';
55
+ if (!this._formData) {
56
+ throw new Error('IllegalArgumentException');
57
+ }
58
+ const params = {};
59
+ if (this._isForceUseReportId) {
60
+ params['force-use-report-id'] = 'true';
61
+ }
62
+ return new ProjectImportPackageRequest(path, params, this._formData);
63
+ }
64
+ workspaceId(workspaceId) {
65
+ this._workspaceId = workspaceId;
66
+ return this;
67
+ }
68
+ projectId(projectId) {
69
+ this._projectId = projectId;
70
+ return this;
71
+ }
72
+ forceUseReportId(isForceUseReportId) {
73
+ this._isForceUseReportId = isForceUseReportId;
74
+ return this;
75
+ }
76
+ append(buffer) {
77
+ if (!this._formData) {
78
+ this._formData = new form_data_1.default();
79
+ }
80
+ this._formData.append('file', buffer, 'package.zip');
81
+ return this;
82
+ }
83
+ }
84
+ //# sourceMappingURL=project-import-package-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-import-package-request.js","sourceRoot":"","sources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IACvE,CAAC;IAEM,WAAW,CAAC,WAAmB;QACpC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,SAAS,CAAC,SAAiB;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,gBAAgB,CAAC,kBAA2B;QACjD,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,MAAW;QACvB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,EAAE,CAAC;SACjC;QACD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ import { IPutObjectRequest } from '../put-object-request.interface';
2
+ import FormData from 'form-data';
3
+ export declare class ProjectPutCoverRequest implements IPutObjectRequest {
4
+ path: string;
5
+ formData: FormData;
6
+ constructor(path: string, formData: FormData);
7
+ getPath(): string;
8
+ getFormData(): any;
9
+ static builder(): Builder;
10
+ }
11
+ declare class Builder {
12
+ private _workspaceId;
13
+ private _projectId;
14
+ private _formData;
15
+ build(): ProjectPutCoverRequest;
16
+ workspaceId(workspaceId: string): Builder;
17
+ projectId(projectId: string): Builder;
18
+ append(buffer: any, fileName: string): Builder;
19
+ }
20
+ export {};
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Rapid Table, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the 'License').
6
+ * You may not use this file except in compliance with the License. A copy of the License is located at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR
11
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ var __importDefault = (this && this.__importDefault) || function (mod) {
15
+ return (mod && mod.__esModule) ? mod : { "default": mod };
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ProjectPutCoverRequest = void 0;
19
+ const path_config_1 = require("../path-config");
20
+ const form_data_1 = __importDefault(require("form-data"));
21
+ class ProjectPutCoverRequest {
22
+ constructor(path, formData) {
23
+ this.path = path;
24
+ this.formData = formData;
25
+ }
26
+ getPath() {
27
+ return this.path;
28
+ }
29
+ getFormData() {
30
+ return this.formData;
31
+ }
32
+ static builder() {
33
+ return new Builder();
34
+ }
35
+ }
36
+ exports.ProjectPutCoverRequest = ProjectPutCoverRequest;
37
+ class Builder {
38
+ constructor() {
39
+ this._workspaceId = null;
40
+ this._projectId = null;
41
+ this._formData = null;
42
+ }
43
+ build() {
44
+ const path = path_config_1.PathConfig.ROOT + path_config_1.PathConfig.WORKSPACE + `/${this._workspaceId}` +
45
+ path_config_1.PathConfig.PROJECTS + `/${this._projectId}` +
46
+ path_config_1.PathConfig.OBJECTS;
47
+ if (!this._formData) {
48
+ throw new Error('IllegalArgumentException');
49
+ }
50
+ return new ProjectPutCoverRequest(path, this._formData);
51
+ }
52
+ workspaceId(workspaceId) {
53
+ this._workspaceId = workspaceId;
54
+ return this;
55
+ }
56
+ projectId(projectId) {
57
+ this._projectId = projectId;
58
+ return this;
59
+ }
60
+ append(buffer, fileName) {
61
+ if (!this._formData) {
62
+ this._formData = new form_data_1.default();
63
+ }
64
+ this._formData.append('file', buffer, fileName);
65
+ return this;
66
+ }
67
+ }
68
+ //# sourceMappingURL=project-put-cover-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-put-cover-request.js","sourceRoot":"","sources":["../../../src/resource/project/project-put-cover-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;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BAAQ,EAAE,CAAC;SACnC;QACD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Project Resource Request model
3
+ */
4
+ export declare class ProjectRequestModel {
5
+ id: string;
6
+ name: string;
7
+ description: string | null;
8
+ theme: string | null;
9
+ coverPath: string | null;
10
+ locale: 'en' | 'ja' | null;
11
+ constructor(id: string, name: string, description: string | null, theme: string | null, coverPath: string | null, locale: 'en' | 'ja' | null);
12
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Rapid Table, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the 'License').
6
+ * You may not use this file except in compliance with the License. A copy of the License is located at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR
11
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ProjectRequestModel = void 0;
16
+ /**
17
+ * Project Resource Request model
18
+ */
19
+ class ProjectRequestModel {
20
+ constructor(id, name, description, theme, coverPath, locale) {
21
+ this.id = id;
22
+ this.name = name;
23
+ this.description = description;
24
+ this.theme = theme;
25
+ this.coverPath = coverPath;
26
+ this.locale = locale;
27
+ }
28
+ }
29
+ exports.ProjectRequestModel = ProjectRequestModel;
30
+ //# sourceMappingURL=project-request-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-request-model.js","sourceRoot":"","sources":["../../../src/resource/project/project-request-model.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH;;GAEG;AACH,MAAa,mBAAmB;IAC9B,YACS,EAAU,EACV,IAAY,EACZ,WAA0B,EAC1B,KAAoB,EACpB,SAAwB,EACxB,MAA0B;QAL1B,OAAE,GAAF,EAAE,CAAQ;QACV,SAAI,GAAJ,IAAI,CAAQ;QACZ,gBAAW,GAAX,WAAW,CAAe;QAC1B,UAAK,GAAL,KAAK,CAAe;QACpB,cAAS,GAAT,SAAS,CAAe;QACxB,WAAM,GAAN,MAAM,CAAoB;IAChC,CAAC;CACL;AATD,kDASC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Import failed report model
3
+ */
4
+ export declare class ImportFailedReport {
5
+ row: number;
6
+ schemaId: string;
7
+ reason: string;
8
+ constructor(row: number, schemaId: string, reason: string);
9
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright Rapid Table, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the 'License').
6
+ * You may not use this file except in compliance with the License. A copy of the License is located at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR
11
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ImportFailedReport = void 0;
16
+ /**
17
+ * Import failed report model
18
+ */
19
+ class ImportFailedReport {
20
+ constructor(row, schemaId, reason) {
21
+ this.row = row;
22
+ this.schemaId = schemaId;
23
+ this.reason = reason;
24
+ }
25
+ }
26
+ exports.ImportFailedReport = ImportFailedReport;
27
+ //# sourceMappingURL=import-failed-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-failed-report.js","sourceRoot":"","sources":["../../../src/resource/report/import-failed-report.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH;;GAEG;AACH,MAAa,kBAAkB;IAC7B,YACS,GAAW,EACX,QAAgB,EAChB,MAAc;QAFd,QAAG,GAAH,GAAG,CAAQ;QACX,aAAQ,GAAR,QAAQ,CAAQ;QAChB,WAAM,GAAN,MAAM,CAAQ;IACpB,CAAC;CACL;AAND,gDAMC"}