@or-sdk/views 0.25.6 → 0.25.7-next.656.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.
- package/README.md +1 -1
- package/dist/cjs/Views.js +64 -121
- package/dist/cjs/Views.js.map +1 -1
- package/dist/cjs/constants.js +3 -13
- package/dist/cjs/constants.js.map +1 -1
- package/dist/esm/Views.js +47 -92
- package/dist/esm/Views.js.map +1 -1
- package/dist/esm/constants.js +1 -331
- package/dist/esm/constants.js.map +1 -1
- package/dist/types/Views.d.ts +5 -6
- package/dist/types/Views.d.ts.map +1 -1
- package/dist/types/constants.d.ts +1 -11
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/types.d.ts +13 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/Views.ts +64 -131
- package/src/constants.ts +1 -341
- package/src/types.ts +16 -2
- package/dist/cjs/utils/addTagsIds.js +0 -20
- package/dist/cjs/utils/addTagsIds.js.map +0 -1
- package/dist/cjs/utils/filterTagIds.js +0 -25
- package/dist/cjs/utils/filterTagIds.js.map +0 -1
- package/dist/cjs/utils/index.js +0 -13
- package/dist/cjs/utils/index.js.map +0 -1
- package/dist/cjs/utils/removeTagIds.js +0 -11
- package/dist/cjs/utils/removeTagIds.js.map +0 -1
- package/dist/esm/utils/addTagsIds.js +0 -9
- package/dist/esm/utils/addTagsIds.js.map +0 -1
- package/dist/esm/utils/filterTagIds.js +0 -23
- package/dist/esm/utils/filterTagIds.js.map +0 -1
- package/dist/esm/utils/index.js +0 -4
- package/dist/esm/utils/index.js.map +0 -1
- package/dist/esm/utils/removeTagIds.js +0 -9
- package/dist/esm/utils/removeTagIds.js.map +0 -1
- package/dist/types/utils/addTagsIds.d.ts +0 -4
- package/dist/types/utils/addTagsIds.d.ts.map +0 -1
- package/dist/types/utils/filterTagIds.d.ts +0 -7
- package/dist/types/utils/filterTagIds.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -4
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/removeTagIds.d.ts +0 -4
- package/dist/types/utils/removeTagIds.d.ts.map +0 -1
- package/src/utils/addTagsIds.ts +0 -15
- package/src/utils/filterTagIds.ts +0 -27
- package/src/utils/index.ts +0 -6
- package/src/utils/removeTagIds.ts +0 -15
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ import { Views } from '@or-sdk/views'
|
|
|
10
10
|
// with direct api url
|
|
11
11
|
const views = new Views({
|
|
12
12
|
token: 'my-account-token-string',
|
|
13
|
-
|
|
13
|
+
dataHubSvcUrl: 'http://example.data-hub-svc/endpoint'
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
// with service discovery(slower)
|
package/dist/cjs/Views.js
CHANGED
|
@@ -48,182 +48,125 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
};
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
exports.Views = void 0;
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var base_1 = require("@or-sdk/base");
|
|
52
|
+
var data_hub_svc_1 = require("@or-sdk/data-hub-svc");
|
|
53
53
|
var tags_1 = require("@or-sdk/tags");
|
|
54
54
|
var Views = (function () {
|
|
55
55
|
function Views(params) {
|
|
56
|
-
var token = params.token, discoveryUrl = params.discoveryUrl, accountId = params.accountId,
|
|
57
|
-
this.
|
|
56
|
+
var token = params.token, discoveryUrl = params.discoveryUrl, accountId = params.accountId, dataHubSvcUrl = params.dataHubSvcUrl;
|
|
57
|
+
this.dataHubSvc = new data_hub_svc_1.DataHubSvc({
|
|
58
58
|
token: token,
|
|
59
59
|
discoveryUrl: discoveryUrl,
|
|
60
60
|
accountId: accountId,
|
|
61
|
-
|
|
61
|
+
dataHubSvcUrl: dataHubSvcUrl,
|
|
62
62
|
});
|
|
63
63
|
this.tags = new tags_1.Tags({
|
|
64
64
|
token: token,
|
|
65
65
|
discoveryUrl: discoveryUrl,
|
|
66
66
|
accountId: accountId,
|
|
67
|
-
|
|
67
|
+
dataHubSvcUrl: dataHubSvcUrl,
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
Views.prototype.
|
|
70
|
+
Views.prototype.listViews = function (params, paginationOptions) {
|
|
71
|
+
if (params === void 0) { params = {}; }
|
|
72
|
+
if (paginationOptions === void 0) { paginationOptions = {}; }
|
|
71
73
|
return __awaiter(this, void 0, void 0, function () {
|
|
74
|
+
var result;
|
|
72
75
|
return __generator(this, function (_a) {
|
|
73
76
|
switch (_a.label) {
|
|
74
|
-
case 0: return [4,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
case 0: return [4, this.dataHubSvc.makeRequest({
|
|
78
|
+
method: 'GET',
|
|
79
|
+
route: 'views',
|
|
80
|
+
params: __assign(__assign(__assign({}, params), paginationOptions), this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
81
|
+
})];
|
|
78
82
|
case 1:
|
|
79
|
-
_a.sent();
|
|
80
|
-
return [2];
|
|
83
|
+
result = _a.sent();
|
|
84
|
+
return [2, (0, base_1.makeList)(result)];
|
|
81
85
|
}
|
|
82
86
|
});
|
|
83
87
|
});
|
|
84
88
|
};
|
|
85
|
-
Views.prototype.listViews = function () {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
-
var variables, operationName, data;
|
|
88
|
-
return __generator(this, function (_a) {
|
|
89
|
-
variables = __assign({ entity: constants_1.ENTITY_NAME, params: {
|
|
90
|
-
queryParams: {},
|
|
91
|
-
includeDeleted: false,
|
|
92
|
-
includeExisting: true,
|
|
93
|
-
limit: 30,
|
|
94
|
-
} }, this.dataHub.isCrossAccount ? { accountId: this.dataHub.currentAccountId } : { sandbox: false });
|
|
95
|
-
operationName = this.dataHub.getOperationName(data_hub_1.OperationNames.LIST);
|
|
96
|
-
data = {
|
|
97
|
-
operationName: operationName,
|
|
98
|
-
query: this.dataHub.isCrossAccount ? constants_1.QUERY_LIST_CROSSACCOUNT : constants_1.QUERY_LIST,
|
|
99
|
-
variables: variables,
|
|
100
|
-
};
|
|
101
|
-
return [2, this.dataHub.getFullList('POST', '/graphql', data)];
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
89
|
Views.prototype.getView = function (id) {
|
|
106
90
|
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
-
var variables, operationName, data, result;
|
|
108
91
|
return __generator(this, function (_a) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
includeExisting: true,
|
|
115
|
-
} }, this.dataHub.isCrossAccount ? { accountId: this.dataHub.currentAccountId } : {});
|
|
116
|
-
operationName = this.dataHub.getOperationName(data_hub_1.OperationNames.GET);
|
|
117
|
-
data = {
|
|
118
|
-
operationName: operationName,
|
|
119
|
-
query: this.dataHub.isCrossAccount ? constants_1.QUERY_GET_CROSSACCOUNT : constants_1.QUERY_GET,
|
|
120
|
-
variables: variables,
|
|
121
|
-
};
|
|
122
|
-
return [4, this.dataHub.makeRequest({
|
|
123
|
-
method: 'POST',
|
|
124
|
-
route: '/graphql',
|
|
125
|
-
data: data,
|
|
126
|
-
})];
|
|
127
|
-
case 1:
|
|
128
|
-
result = _a.sent();
|
|
129
|
-
return [2, result.data[operationName]];
|
|
130
|
-
}
|
|
92
|
+
return [2, this.dataHubSvc.makeRequest({
|
|
93
|
+
method: 'GET',
|
|
94
|
+
route: "views/".concat(id),
|
|
95
|
+
params: __assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
96
|
+
})];
|
|
131
97
|
});
|
|
132
98
|
});
|
|
133
99
|
};
|
|
134
100
|
Views.prototype.saveView = function (source) {
|
|
135
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
136
102
|
return __generator(this, function (_a) {
|
|
137
|
-
return [2, source.id ? this.updateView(source) : this.createView(source)];
|
|
103
|
+
return [2, (source.id && source.id !== 'new') ? this.updateView(source) : this.createView(source)];
|
|
138
104
|
});
|
|
139
105
|
});
|
|
140
106
|
};
|
|
141
107
|
Views.prototype.createView = function (source) {
|
|
142
108
|
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
-
var
|
|
109
|
+
var result;
|
|
144
110
|
return __generator(this, function (_a) {
|
|
145
111
|
switch (_a.label) {
|
|
146
|
-
case 0:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
variables: variables,
|
|
155
|
-
};
|
|
156
|
-
return [4, this.dataHub.makeRequest({
|
|
157
|
-
method: 'POST',
|
|
158
|
-
route: '/graphql',
|
|
159
|
-
data: data,
|
|
160
|
-
})];
|
|
112
|
+
case 0: return [4, this.dataHubSvc.makeRequest({
|
|
113
|
+
method: 'POST',
|
|
114
|
+
route: 'views/new',
|
|
115
|
+
data: {
|
|
116
|
+
view: __assign(__assign({}, source), { id: 'new' }),
|
|
117
|
+
},
|
|
118
|
+
params: __assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
119
|
+
})];
|
|
161
120
|
case 1:
|
|
162
121
|
result = _a.sent();
|
|
163
|
-
return [2, result
|
|
122
|
+
return [2, (0, data_hub_svc_1.setDiff)(source, result)];
|
|
164
123
|
}
|
|
165
124
|
});
|
|
166
125
|
});
|
|
167
126
|
};
|
|
168
127
|
Views.prototype.updateView = function (source) {
|
|
169
128
|
return __awaiter(this, void 0, void 0, function () {
|
|
170
|
-
var
|
|
129
|
+
var result;
|
|
171
130
|
return __generator(this, function (_a) {
|
|
172
131
|
switch (_a.label) {
|
|
173
|
-
case 0:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
query: this.dataHub.isCrossAccount ? constants_1.QUERY_UPDATE_CROSSACCOUNT : constants_1.QUERY_UPDATE,
|
|
182
|
-
variables: variables,
|
|
183
|
-
};
|
|
184
|
-
return [4, this.dataHub.makeRequest({
|
|
185
|
-
method: 'POST',
|
|
186
|
-
route: '/graphql',
|
|
187
|
-
data: data,
|
|
188
|
-
})];
|
|
132
|
+
case 0: return [4, this.dataHubSvc.makeRequest({
|
|
133
|
+
method: 'POST',
|
|
134
|
+
route: "views/".concat(source.id),
|
|
135
|
+
data: {
|
|
136
|
+
view: source,
|
|
137
|
+
},
|
|
138
|
+
params: __assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
139
|
+
})];
|
|
189
140
|
case 1:
|
|
190
141
|
result = _a.sent();
|
|
191
|
-
return [2, result
|
|
142
|
+
return [2, (0, data_hub_svc_1.setDiff)(source, result)];
|
|
192
143
|
}
|
|
193
144
|
});
|
|
194
145
|
});
|
|
195
146
|
};
|
|
196
|
-
Views.prototype.deleteView = function (viewId) {
|
|
147
|
+
Views.prototype.deleteView = function (viewId, temporarily) {
|
|
148
|
+
if (temporarily === void 0) { temporarily = true; }
|
|
197
149
|
return __awaiter(this, void 0, void 0, function () {
|
|
198
|
-
var variables, operationName, data, result;
|
|
199
150
|
return __generator(this, function (_a) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
method: 'POST',
|
|
220
|
-
route: '/graphql',
|
|
221
|
-
data: data,
|
|
222
|
-
})];
|
|
223
|
-
case 1:
|
|
224
|
-
result = _a.sent();
|
|
225
|
-
return [2, this.dataHub.subscribe(result.data[operationName].requestId)];
|
|
226
|
-
}
|
|
151
|
+
return [2, this.dataHubSvc.makeRequest({
|
|
152
|
+
method: 'DELETE',
|
|
153
|
+
route: "views/".concat(viewId),
|
|
154
|
+
data: {
|
|
155
|
+
temporarily: temporarily,
|
|
156
|
+
},
|
|
157
|
+
params: __assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
158
|
+
})];
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
Views.prototype.recoverView = function (viewId) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
+
return __generator(this, function (_a) {
|
|
165
|
+
return [2, this.dataHubSvc.makeRequest({
|
|
166
|
+
method: 'PATCH',
|
|
167
|
+
route: "views/".concat(viewId),
|
|
168
|
+
params: __assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
169
|
+
})];
|
|
227
170
|
});
|
|
228
171
|
});
|
|
229
172
|
};
|
package/dist/cjs/Views.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Views.js","sourceRoot":"","sources":["../../src/Views.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Views.js","sourceRoot":"","sources":["../../src/Views.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA8C;AAC9C,qDAA2D;AAE3D,qCAAsF;AAEtF;IAIE,eAAY,MAAmB;QACrB,IAAA,KAAK,GAA6C,MAAM,MAAnD,EAAE,YAAY,GAA+B,MAAM,aAArC,EAAE,SAAS,GAAoB,MAAM,UAA1B,EAAE,aAAa,GAAK,MAAM,cAAX,CAAY;QAEjE,IAAI,CAAC,UAAU,GAAG,IAAI,yBAAU,CAAC;YAC/B,KAAK,OAAA;YACL,YAAY,cAAA;YACZ,SAAS,WAAA;YACT,aAAa,eAAA;SACd,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,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I,CAAC,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAA;;wBAAtD,IAAI,GAAG,SAA+C;wBACtD,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,EAAG,EAAP,CAAO,CAAC,CAAC;wBAEhC,WAAW,GAAK,IAAA,mBAAY,EAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,YAA1D,CAA2D;wBAE9E,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;4BACvB,MAAM,KAAK,CAAC,uBAAuB,CAAC,CAAC;yBACtC;wBAED,WAAO,IAAI,CAAC,QAAQ,uBACf,MAAM,KACT,IAAI,wBACC,MAAM,CAAC,IAAI,KACd,IAAI,wBACC,MAAM,CAAC,IAAI,CAAC,IAAI,KACnB,cAAc,EAAE,IAAA,mBAAY,EAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,UAG9E,EAAC;;;;KACJ;IACH,YAAC;AAAD,CAAC,AA5MD,IA4MC;AA5MY,sBAAK"}
|
package/dist/cjs/constants.js
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
6
|
-
exports.QUERY_LIST = "query list($entity: EntityType!, $params: ListInput!, $sandbox: Boolean) {\n list(entity: $entity, params: $params, sandbox: $sandbox) {\n records {\n ... on View {\n id\n data {\n data\n }\n cardIds\n mirrorCardIds\n linkId\n linkType\n template {\n category\n description\n help\n icon\n iconUrl\n implicitly\n label\n publishedBy\n tags\n type\n version\n }\n reference\n }\n }\n last\n }\n}\n";
|
|
7
|
-
exports.QUERY_LIST_CROSSACCOUNT = "query listCrossAccount($entity: EntityType!, $params: ListInput!, $accountId: String!) {\n listCrossAccount(entity: $entity, params: $params, accountId: $accountId) {\n records {\n ... on View {\n id\n data {\n data\n }\n cardIds\n mirrorCardIds\n linkId\n linkType\n template {\n category\n description\n help\n icon\n iconUrl\n implicitly\n label\n publishedBy\n tags\n type\n version\n }\n reference\n }\n }\n last\n }\n}\n";
|
|
8
|
-
exports.QUERY_GET = "query get($entity: EntityType!, $params: GetInput!) {\n get(entity: $entity, params: $params) {\n ... on View {\n id\n cardIds\n linkId\n mirrorCardIds\n schemaVersion\n dateCreated\n dateModified\n data {\n data\n form {\n code\n data\n style\n template\n }\n presentation {\n code\n data\n style\n template\n }\n }\n linkType\n reference\n template {\n category\n description\n help\n icon\n iconUrl\n implicitly\n label\n publishedBy\n tags\n type\n version\n }\n }\n }\n}";
|
|
9
|
-
exports.QUERY_GET_CROSSACCOUNT = "query getCrossAccount($entity: EntityType!, $params: GetInput!, $accountId: String!) {\n getCrossAccount(entity: $entity, params: $params, accountId: $accountId) {\n ... on View {\n id\n cardIds\n linkId\n mirrorCardIds\n schemaVersion\n dateCreated\n dateModified\n data {\n data\n form {\n code\n data\n style\n template\n }\n presentation {\n code\n data\n style\n template\n }\n }\n linkType\n reference\n template {\n category\n description\n help\n icon\n iconUrl\n implicitly\n label\n publishedBy\n tags\n type\n version\n }\n }\n }\n}";
|
|
10
|
-
exports.QUERY_CREATE = "mutation create($entity: EntityType!, $data: CreateInput!) {\n create(entity: $entity, data: $data) {\n ... on View {\n id\n cardIds\n linkId\n mirrorCardIds\n schemaVersion\n dateCreated\n dateModified\n data {\n data\n form {\n code\n data\n style\n template\n }\n presentation {\n code\n data\n style\n template\n }\n }\n linkType\n reference\n template {\n category\n description\n help\n icon\n iconUrl\n implicitly\n label\n publishedBy\n tags\n type\n version\n }\n }\n }\n}";
|
|
11
|
-
exports.QUERY_CREATE_CROSSACCOUNT = "mutation createCrossAccount($entity: EntityType!, $data: CreateInput!, $accountId: String!) {\n createCrossAccount(entity: $entity, data: $data, accountId: $accountId) {\n ... on View {\n id\n cardIds\n linkId\n mirrorCardIds\n schemaVersion\n dateCreated\n dateModified\n data {\n data\n form {\n code\n data\n style\n template\n }\n presentation {\n code\n data\n style\n template\n }\n }\n linkType\n reference\n template {\n category\n description\n help\n icon\n iconUrl\n implicitly\n label\n publishedBy\n tags\n type\n version\n }\n }\n }\n}";
|
|
12
|
-
exports.QUERY_UPDATE = "mutation update($entity: EntityType!, $data: UpdateInput!) {\n update(entity: $entity, data: $data) {\n ... on View {\n id\n cardIds\n linkId\n mirrorCardIds\n schemaVersion\n dateCreated\n dateModified\n data {\n data\n form {\n code\n data\n style\n template\n }\n presentation {\n code\n data\n style\n template\n }\n }\n linkType\n reference\n template {\n category\n description\n help\n icon\n iconUrl\n implicitly\n label\n publishedBy\n tags\n type\n version\n }\n }\n }\n}";
|
|
13
|
-
exports.QUERY_UPDATE_CROSSACCOUNT = "mutation updateCrossAccount($entity: EntityType!, $data: UpdateInput!, $accountId: String!) {\n updateCrossAccount(entity: $entity, data: $data, accountId: $accountId) {\n ... on View {\n id\n cardIds\n linkId\n mirrorCardIds\n schemaVersion\n dateCreated\n dateModified\n data {\n data\n form {\n code\n data\n style\n template\n }\n presentation {\n code\n data\n style\n template\n }\n }\n linkType\n reference\n template {\n category\n description\n help\n icon\n iconUrl\n implicitly\n label\n publishedBy\n tags\n type\n version\n }\n }\n }\n}";
|
|
14
|
-
exports.QUERY_DELETE = "mutation deleteTemporarily($entity: EntityType!, $data: DeleteInput!) {\n deleteTemporarily(entity: $entity, data: $data) {\n ... on AsyncRequest {\n requestId\n }\n }\n}";
|
|
15
|
-
exports.ENTITY_NAME = 'VIEW';
|
|
3
|
+
exports.DATA_HUB_SVC_SERVICE_KEY = void 0;
|
|
4
|
+
var data_hub_svc_1 = require("@or-sdk/data-hub-svc");
|
|
5
|
+
Object.defineProperty(exports, "DATA_HUB_SVC_SERVICE_KEY", { enumerable: true, get: function () { return data_hub_svc_1.DATA_HUB_SVC_SERVICE_KEY; } });
|
|
16
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAAvD,wHAAA,wBAAwB,OAAA"}
|
package/dist/esm/Views.js
CHANGED
|
@@ -7,139 +7,94 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { makeList } from '@or-sdk/base';
|
|
11
|
+
import { DataHubSvc, setDiff } from '@or-sdk/data-hub-svc';
|
|
12
12
|
import { Tags, filterTagIds, addTagsIds, removeTagIds } from '@or-sdk/tags';
|
|
13
13
|
export class Views {
|
|
14
14
|
constructor(params) {
|
|
15
|
-
const { token, discoveryUrl, accountId,
|
|
16
|
-
this.
|
|
15
|
+
const { token, discoveryUrl, accountId, dataHubSvcUrl } = params;
|
|
16
|
+
this.dataHubSvc = new DataHubSvc({
|
|
17
17
|
token,
|
|
18
18
|
discoveryUrl,
|
|
19
19
|
accountId,
|
|
20
|
-
|
|
20
|
+
dataHubSvcUrl,
|
|
21
21
|
});
|
|
22
22
|
this.tags = new Tags({
|
|
23
23
|
token,
|
|
24
24
|
discoveryUrl,
|
|
25
25
|
accountId,
|
|
26
|
-
|
|
26
|
+
dataHubSvcUrl,
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
listViews(params = {}, paginationOptions = {}) {
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
yield
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
listViews() {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const variables = Object.assign({ entity: ENTITY_NAME, params: {
|
|
40
|
-
queryParams: {},
|
|
41
|
-
includeDeleted: false,
|
|
42
|
-
includeExisting: true,
|
|
43
|
-
limit: 30,
|
|
44
|
-
} }, this.dataHub.isCrossAccount ? { accountId: this.dataHub.currentAccountId } : { sandbox: false });
|
|
45
|
-
const operationName = this.dataHub.getOperationName(OperationNames.LIST);
|
|
46
|
-
const data = {
|
|
47
|
-
operationName,
|
|
48
|
-
query: this.dataHub.isCrossAccount ? QUERY_LIST_CROSSACCOUNT : QUERY_LIST,
|
|
49
|
-
variables,
|
|
50
|
-
};
|
|
51
|
-
return this.dataHub.getFullList('POST', '/graphql', data);
|
|
31
|
+
const result = yield this.dataHubSvc.makeRequest({
|
|
32
|
+
method: 'GET',
|
|
33
|
+
route: 'views',
|
|
34
|
+
params: Object.assign(Object.assign(Object.assign({}, params), paginationOptions), this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
35
|
+
});
|
|
36
|
+
return makeList(result);
|
|
52
37
|
});
|
|
53
38
|
}
|
|
54
39
|
getView(id) {
|
|
55
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} }, this.dataHub.isCrossAccount ? { accountId: this.dataHub.currentAccountId } : {});
|
|
61
|
-
const operationName = this.dataHub.getOperationName(OperationNames.GET);
|
|
62
|
-
const data = {
|
|
63
|
-
operationName,
|
|
64
|
-
query: this.dataHub.isCrossAccount ? QUERY_GET_CROSSACCOUNT : QUERY_GET,
|
|
65
|
-
variables,
|
|
66
|
-
};
|
|
67
|
-
const result = yield this.dataHub.makeRequest({
|
|
68
|
-
method: 'POST',
|
|
69
|
-
route: '/graphql',
|
|
70
|
-
data,
|
|
41
|
+
return this.dataHubSvc.makeRequest({
|
|
42
|
+
method: 'GET',
|
|
43
|
+
route: `views/${id}`,
|
|
44
|
+
params: Object.assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
71
45
|
});
|
|
72
|
-
return result.data[operationName];
|
|
73
46
|
});
|
|
74
47
|
}
|
|
75
48
|
saveView(source) {
|
|
76
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
return source.id ? this.updateView(source) : this.createView(source);
|
|
50
|
+
return (source.id && source.id !== 'new') ? this.updateView(source) : this.createView(source);
|
|
78
51
|
});
|
|
79
52
|
}
|
|
80
53
|
createView(source) {
|
|
81
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
-
const
|
|
83
|
-
body: source,
|
|
84
|
-
} }, this.dataHub.isCrossAccount ? { accountId: this.dataHub.currentAccountId } : {});
|
|
85
|
-
const operationName = this.dataHub.getOperationName(OperationNames.CREATE);
|
|
86
|
-
const data = {
|
|
87
|
-
operationName,
|
|
88
|
-
query: this.dataHub.isCrossAccount ? QUERY_CREATE_CROSSACCOUNT : QUERY_CREATE,
|
|
89
|
-
variables,
|
|
90
|
-
};
|
|
91
|
-
const result = yield this.dataHub.makeRequest({
|
|
55
|
+
const result = yield this.dataHubSvc.makeRequest({
|
|
92
56
|
method: 'POST',
|
|
93
|
-
route: '/
|
|
94
|
-
data
|
|
57
|
+
route: 'views/new',
|
|
58
|
+
data: {
|
|
59
|
+
view: Object.assign(Object.assign({}, source), { id: 'new' }),
|
|
60
|
+
},
|
|
61
|
+
params: Object.assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
95
62
|
});
|
|
96
|
-
return result
|
|
63
|
+
return setDiff(source, result);
|
|
97
64
|
});
|
|
98
65
|
}
|
|
99
66
|
updateView(source) {
|
|
100
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
const
|
|
102
|
-
id: source.id,
|
|
103
|
-
body: source,
|
|
104
|
-
} }, this.dataHub.isCrossAccount ? { accountId: this.dataHub.currentAccountId } : {});
|
|
105
|
-
const operationName = this.dataHub.getOperationName(OperationNames.UPDATE);
|
|
106
|
-
const data = {
|
|
107
|
-
operationName,
|
|
108
|
-
query: this.dataHub.isCrossAccount ? QUERY_UPDATE_CROSSACCOUNT : QUERY_UPDATE,
|
|
109
|
-
variables,
|
|
110
|
-
};
|
|
111
|
-
const result = yield this.dataHub.makeRequest({
|
|
68
|
+
const result = yield this.dataHubSvc.makeRequest({
|
|
112
69
|
method: 'POST',
|
|
113
|
-
route:
|
|
114
|
-
data
|
|
70
|
+
route: `views/${source.id}`,
|
|
71
|
+
data: {
|
|
72
|
+
view: source,
|
|
73
|
+
},
|
|
74
|
+
params: Object.assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
115
75
|
});
|
|
116
|
-
return result
|
|
76
|
+
return setDiff(source, result);
|
|
117
77
|
});
|
|
118
78
|
}
|
|
119
|
-
deleteView(viewId) {
|
|
79
|
+
deleteView(viewId, temporarily = true) {
|
|
120
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
const variables = {
|
|
125
|
-
entity: ENTITY_NAME,
|
|
81
|
+
return this.dataHubSvc.makeRequest({
|
|
82
|
+
method: 'DELETE',
|
|
83
|
+
route: `views/${viewId}`,
|
|
126
84
|
data: {
|
|
127
|
-
|
|
128
|
-
subscribe: true,
|
|
85
|
+
temporarily,
|
|
129
86
|
},
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
data,
|
|
87
|
+
params: Object.assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
recoverView(viewId) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
return this.dataHubSvc.makeRequest({
|
|
94
|
+
method: 'PATCH',
|
|
95
|
+
route: `views/${viewId}`,
|
|
96
|
+
params: Object.assign({}, this.dataHubSvc.isCrossAccount ? { accountId: this.dataHubSvc.currentAccountId } : {}),
|
|
141
97
|
});
|
|
142
|
-
return this.dataHub.subscribe(result.data[operationName].requestId);
|
|
143
98
|
});
|
|
144
99
|
}
|
|
145
100
|
addTags(source, tagNames) {
|
package/dist/esm/Views.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Views.js","sourceRoot":"","sources":["../../src/Views.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Views.js","sourceRoot":"","sources":["../../src/Views.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAY,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEtF,MAAM,OAAO,KAAK;IAIhB,YAAY,MAAmB;QAC7B,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QAEjE,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC;YAC/B,KAAK;YACL,YAAY;YACZ,SAAS;YACT,aAAa;SACd,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC;YACnB,KAAK;YACL,YAAY;YACZ,SAAS;YACT,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAQY,SAAS,CAAC,SAAyB,EAAE,EAAE,oBAAuC,EAAE;;YAC3F,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAAS;gBACvD,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,OAAO;gBACd,MAAM,gDACD,MAAM,GACN,iBAAiB,GAChB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