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,22 @@
1
+ import { IRequest } from '../request.interface';
2
+ export declare class ReportGetCanvasObjectRequest implements IRequest {
3
+ path: string;
4
+ query: {
5
+ [key: string]: string | number;
6
+ };
7
+ constructor(path: string, query: {
8
+ [key: string]: string | number;
9
+ });
10
+ getPath(): string;
11
+ getQuery(): {
12
+ [key: string]: string | number;
13
+ };
14
+ getBody(): string | null;
15
+ static builder(): Builder;
16
+ }
17
+ declare class Builder {
18
+ private _path;
19
+ build(): ReportGetCanvasObjectRequest;
20
+ target(value: unknown): Builder;
21
+ }
22
+ export {};
@@ -0,0 +1,63 @@
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.ReportGetCanvasObjectRequest = void 0;
16
+ const path_config_1 = require("../path-config");
17
+ class ReportGetCanvasObjectRequest {
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.ReportGetCanvasObjectRequest = ReportGetCanvasObjectRequest;
36
+ class Builder {
37
+ constructor() {
38
+ this._path = null;
39
+ }
40
+ build() {
41
+ if (!this._path) {
42
+ throw new Error('IllegalArgumentException');
43
+ }
44
+ return new ReportGetCanvasObjectRequest(this._path, {});
45
+ }
46
+ target(value) {
47
+ if (value !== null && typeof value === 'string') {
48
+ const matcher = path_config_1.PathConfig.REPORT_CANVAS_OBJECT_PATH_PATTERN.exec(value);
49
+ if (matcher && matcher.groups) {
50
+ const workspaceId = matcher.groups.wid;
51
+ const projectId = matcher.groups.pid;
52
+ const reportId = matcher.groups.rid;
53
+ const fieldId = matcher.groups.fid;
54
+ this._path = path_config_1.PathConfig.ROOT + path_config_1.PathConfig.WORKSPACE + `/${workspaceId}` +
55
+ path_config_1.PathConfig.PROJECTS + `/${projectId}` +
56
+ path_config_1.PathConfig.REPORTS + `/${reportId}` +
57
+ path_config_1.PathConfig.CANVAS + `/${fieldId}`;
58
+ }
59
+ }
60
+ return this;
61
+ }
62
+ }
63
+ //# sourceMappingURL=report-get-canvas-object-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-get-canvas-object-request.js","sourceRoot":"","sources":["../../../src/resource/report/report-get-canvas-object-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,gDAA4C;AAG5C,MAAa,4BAA4B;IAErC,YAAmB,IAAY,EAAS,KAAyC;QAA9D,SAAI,GAAJ,IAAI,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAoC;IACjF,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,MAAM,CAAC,OAAO;QACjB,OAAO,IAAI,OAAO,EAAE,CAAC;IACzB,CAAC;CACJ;AApBD,oEAoBC;AAED,MAAM,OAAO;IAAb;QACY,UAAK,GAAkB,IAAI,CAAC;IAyBxC,CAAC;IAvBU,KAAK;QACR,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC/C;QACD,OAAO,IAAI,4BAA4B,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC;IAEM,MAAM,CAAC,KAAc;QACxB,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7C,MAAM,OAAO,GAAG,wBAAU,CAAC,iCAAiC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzE,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;gBAC3B,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;gBACvC,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;gBACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;gBACpC,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;gBACnC,IAAI,CAAC,KAAK,GAAG,wBAAU,CAAC,IAAI,GAAG,wBAAU,CAAC,SAAS,GAAG,IAAI,WAAW,EAAE;oBACnE,wBAAU,CAAC,QAAQ,GAAG,IAAI,SAAS,EAAE;oBACrC,wBAAU,CAAC,OAAO,GAAG,IAAI,QAAQ,EAAE;oBACnC,wBAAU,CAAC,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;aACzC;SACJ;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtc4js",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "RapidTableConnector provides an SDK that allows easy CRUD operations using the Rest API provided by RapidTable.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",