gs2 1.4.98 → 1.4.100
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/account/rest.d.ts +1 -0
- package/account/rest.js +445 -444
- package/account/rest.js.map +1 -1
- package/account/rest.ts +67 -65
- package/adReward/rest.d.ts +1 -0
- package/adReward/rest.js +136 -135
- package/adReward/rest.js.map +1 -1
- package/adReward/rest.ts +24 -22
- package/auth/rest.d.ts +1 -0
- package/auth/rest.js +30 -29
- package/auth/rest.js.map +1 -1
- package/auth/rest.ts +7 -5
- package/buff/rest.d.ts +1 -0
- package/buff/rest.js +162 -161
- package/buff/rest.js.map +1 -1
- package/buff/rest.ts +30 -28
- package/chat/rest.d.ts +1 -0
- package/chat/rest.js +396 -395
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +56 -54
- package/datastore/rest.d.ts +1 -0
- package/datastore/rest.js +282 -281
- package/datastore/rest.js.map +1 -1
- package/datastore/rest.ts +41 -39
- package/deploy/rest.d.ts +1 -0
- package/deploy/rest.js +122 -121
- package/deploy/rest.js.map +1 -1
- package/deploy/rest.ts +26 -24
- package/dictionary/rest.d.ts +1 -0
- package/dictionary/rest.js +317 -316
- package/dictionary/rest.js.map +1 -1
- package/dictionary/rest.ts +53 -51
- package/distributor/rest.d.ts +1 -0
- package/distributor/rest.js +295 -294
- package/distributor/rest.js.map +1 -1
- package/distributor/rest.ts +50 -48
- package/enchant/rest.d.ts +1 -0
- package/enchant/rest.js +375 -374
- package/enchant/rest.js.map +1 -1
- package/enchant/rest.ts +58 -56
- package/enhance/rest.d.ts +1 -0
- package/enhance/rest.js +338 -337
- package/enhance/rest.js.map +1 -1
- package/enhance/rest.ts +52 -50
- package/exchange/rest.d.ts +1 -0
- package/exchange/rest.js +377 -376
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +56 -54
- package/experience/rest.d.ts +1 -0
- package/experience/rest.js +430 -429
- package/experience/rest.js.map +1 -1
- package/experience/rest.ts +62 -60
- package/formation/rest.d.ts +1 -0
- package/formation/rest.js +549 -548
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +81 -79
- package/freeze/rest.d.ts +1 -0
- package/freeze/rest.js +27 -26
- package/freeze/rest.js.map +1 -1
- package/freeze/rest.ts +8 -6
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +442 -441
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +61 -59
- package/gateway/model/WebSocketSession.d.ts +4 -0
- package/gateway/model/WebSocketSession.js +14 -0
- package/gateway/model/WebSocketSession.js.map +1 -1
- package/gateway/model/WebSocketSession.ts +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdByUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdByUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdByUserIdRequest.ts +14 -0
- package/gateway/request/SetUserIdRequest.d.ts +4 -0
- package/gateway/request/SetUserIdRequest.js +14 -0
- package/gateway/request/SetUserIdRequest.js.map +1 -1
- package/gateway/request/SetUserIdRequest.ts +14 -0
- package/gateway/rest.d.ts +1 -0
- package/gateway/rest.js +180 -177
- package/gateway/rest.js.map +1 -1
- package/gateway/rest.ts +32 -28
- package/grade/rest.d.ts +1 -0
- package/grade/rest.js +329 -328
- package/grade/rest.js.map +1 -1
- package/grade/rest.ts +50 -48
- package/guard/rest.d.ts +1 -0
- package/guard/rest.js +34 -33
- package/guard/rest.js.map +1 -1
- package/guard/rest.ts +9 -7
- package/guild/rest.d.ts +1 -0
- package/guild/rest.js +770 -769
- package/guild/rest.js.map +1 -1
- package/guild/rest.ts +95 -93
- package/identifier/rest.d.ts +1 -0
- package/identifier/rest.js +145 -144
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +32 -30
- package/idle/rest.d.ts +1 -0
- package/idle/rest.js +266 -265
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +44 -42
- package/inbox/rest.d.ts +1 -0
- package/inbox/rest.js +319 -318
- package/inbox/rest.js.map +1 -1
- package/inbox/rest.ts +50 -48
- package/inventory/rest.d.ts +1 -0
- package/inventory/rest.js +1001 -1000
- package/inventory/rest.js.map +1 -1
- package/inventory/rest.ts +137 -135
- package/jobQueue/rest.d.ts +1 -0
- package/jobQueue/rest.js +155 -154
- package/jobQueue/rest.js.map +1 -1
- package/jobQueue/rest.ts +27 -25
- package/key/rest.d.ts +1 -0
- package/key/rest.js +107 -106
- package/key/rest.js.map +1 -1
- package/key/rest.ts +21 -19
- package/limit/rest.d.ts +1 -0
- package/limit/rest.js +264 -263
- package/limit/rest.js.map +1 -1
- package/limit/rest.ts +42 -40
- package/lock/rest.d.ts +1 -0
- package/lock/rest.js +91 -90
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +16 -14
- package/log/rest.d.ts +1 -0
- package/log/rest.js +220 -219
- package/log/rest.js.map +1 -1
- package/log/rest.ts +25 -23
- package/loginReward/rest.d.ts +1 -0
- package/loginReward/rest.js +268 -267
- package/loginReward/rest.js.map +1 -1
- package/loginReward/rest.ts +43 -41
- package/lottery/rest.d.ts +1 -0
- package/lottery/rest.js +318 -317
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +52 -50
- package/matchmaking/rest.d.ts +1 -0
- package/matchmaking/rest.js +540 -539
- package/matchmaking/rest.js.map +1 -1
- package/matchmaking/rest.ts +75 -73
- package/megaField/rest.d.ts +1 -0
- package/megaField/rest.js +225 -224
- package/megaField/rest.js.map +1 -1
- package/megaField/rest.ts +36 -34
- package/mission/rest.d.ts +1 -0
- package/mission/rest.js +576 -575
- package/mission/rest.js.map +1 -1
- package/mission/rest.ts +81 -79
- package/money/rest.d.ts +1 -0
- package/money/rest.js +201 -200
- package/money/rest.js.map +1 -1
- package/money/rest.ts +31 -29
- package/money2/rest.d.ts +1 -0
- package/money2/rest.js +432 -431
- package/money2/rest.js.map +1 -1
- package/money2/rest.ts +65 -63
- package/news/rest.d.ts +1 -0
- package/news/rest.js +94 -93
- package/news/rest.js.map +1 -1
- package/news/rest.ts +20 -18
- package/package.json +1 -1
- package/project/rest.d.ts +1 -0
- package/project/rest.js +265 -264
- package/project/rest.js.map +1 -1
- package/project/rest.ts +46 -44
- package/quest/rest.d.ts +1 -0
- package/quest/rest.js +338 -337
- package/quest/rest.js.map +1 -1
- package/quest/rest.ts +52 -50
- package/ranking/rest.d.ts +1 -0
- package/ranking/rest.js +337 -336
- package/ranking/rest.js.map +1 -1
- package/ranking/rest.ts +48 -46
- package/ranking2/rest.d.ts +1 -0
- package/ranking2/rest.js +889 -888
- package/ranking2/rest.js.map +1 -1
- package/ranking2/rest.ts +112 -110
- package/realtime/rest.d.ts +1 -0
- package/realtime/rest.js +68 -67
- package/realtime/rest.js.map +1 -1
- package/realtime/rest.ts +14 -12
- package/schedule/rest.d.ts +1 -0
- package/schedule/rest.js +311 -310
- package/schedule/rest.js.map +1 -1
- package/schedule/rest.ts +49 -47
- package/script/rest.d.ts +1 -0
- package/script/rest.js +109 -108
- package/script/rest.js.map +1 -1
- package/script/rest.ts +19 -17
- package/seasonRating/rest.d.ts +1 -0
- package/seasonRating/rest.js +205 -204
- package/seasonRating/rest.js.map +1 -1
- package/seasonRating/rest.ts +37 -35
- package/serialKey/rest.d.ts +1 -0
- package/serialKey/rest.js +246 -245
- package/serialKey/rest.js.map +1 -1
- package/serialKey/rest.ts +44 -42
- package/showcase/rest.d.ts +1 -0
- package/showcase/rest.js +395 -394
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +60 -58
- package/skillTree/rest.d.ts +1 -0
- package/skillTree/rest.js +267 -266
- package/skillTree/rest.js.map +1 -1
- package/skillTree/rest.ts +43 -41
- package/stamina/rest.d.ts +1 -0
- package/stamina/rest.js +596 -595
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +85 -83
- package/stateMachine/rest.d.ts +1 -0
- package/stateMachine/rest.js +208 -207
- package/stateMachine/rest.js.map +1 -1
- package/stateMachine/rest.ts +33 -31
- package/version/rest.d.ts +1 -0
- package/version/rest.js +259 -258
- package/version/rest.js.map +1 -1
- package/version/rest.ts +41 -39
- package/watch/rest.d.ts +1 -0
- package/watch/rest.js +334 -333
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +80 -78
package/datastore/rest.js
CHANGED
|
@@ -26,8 +26,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
26
26
|
return _super.call(this, session) || this;
|
|
27
27
|
}
|
|
28
28
|
Gs2DatastoreRestClient.prototype.describeNamespaces = function (request) {
|
|
29
|
-
var _a, _b, _c, _d;
|
|
30
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
29
|
+
var _a, _b, _c, _d, _e;
|
|
30
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
31
31
|
.replace('{service}', 'datastore')
|
|
32
32
|
.replace('{region}', this.session.region);
|
|
33
33
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -35,10 +35,10 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
35
35
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
36
36
|
}
|
|
37
37
|
var params = {
|
|
38
|
-
'contextStack': (
|
|
39
|
-
'namePrefix': String((
|
|
40
|
-
'pageToken': String((
|
|
41
|
-
'limit': String((
|
|
38
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
39
|
+
'namePrefix': String((_c = request.getNamePrefix()) !== null && _c !== void 0 ? _c : null),
|
|
40
|
+
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
41
|
+
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
42
42
|
};
|
|
43
43
|
return axios_1.default.get(url, {
|
|
44
44
|
params: params,
|
|
@@ -50,8 +50,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
Gs2DatastoreRestClient.prototype.createNamespace = function (request) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
54
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
54
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/')
|
|
55
55
|
.replace('{service}', 'datastore')
|
|
56
56
|
.replace('{region}', this.session.region);
|
|
57
57
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -59,12 +59,12 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
59
59
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
60
60
|
}
|
|
61
61
|
var body = {
|
|
62
|
-
'contextStack': (
|
|
63
|
-
'name': (
|
|
64
|
-
'description': (
|
|
65
|
-
'transactionSetting': (
|
|
66
|
-
'logSetting': (
|
|
67
|
-
'doneUploadScript': (
|
|
62
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
'name': (_c = request.getName()) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
'description': (_d = request.getDescription()) !== null && _d !== void 0 ? _d : null,
|
|
65
|
+
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
|
+
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
|
+
'doneUploadScript': (_k = (_j = request.getDoneUploadScript()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
68
68
|
};
|
|
69
69
|
return axios_1.default.post(url, body, {
|
|
70
70
|
headers: headers,
|
|
@@ -80,17 +80,17 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
82
|
Gs2DatastoreRestClient.prototype.getNamespaceStatus = function (request) {
|
|
83
|
-
var _a, _b, _c;
|
|
84
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
83
|
+
var _a, _b, _c, _d;
|
|
84
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/status')
|
|
85
85
|
.replace('{service}', 'datastore')
|
|
86
86
|
.replace('{region}', this.session.region)
|
|
87
|
-
.replace('{namespaceName}', String((
|
|
87
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
88
88
|
var headers = this.createAuthorizedHeaders();
|
|
89
89
|
if (request.getRequestId()) {
|
|
90
90
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
91
91
|
}
|
|
92
92
|
var params = {
|
|
93
|
-
'contextStack': (
|
|
93
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
94
94
|
};
|
|
95
95
|
return axios_1.default.get(url, {
|
|
96
96
|
params: params,
|
|
@@ -102,17 +102,17 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
104
|
Gs2DatastoreRestClient.prototype.getNamespace = function (request) {
|
|
105
|
-
var _a, _b, _c;
|
|
106
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
105
|
+
var _a, _b, _c, _d;
|
|
106
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
107
107
|
.replace('{service}', 'datastore')
|
|
108
108
|
.replace('{region}', this.session.region)
|
|
109
|
-
.replace('{namespaceName}', String((
|
|
109
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
110
110
|
var headers = this.createAuthorizedHeaders();
|
|
111
111
|
if (request.getRequestId()) {
|
|
112
112
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
113
113
|
}
|
|
114
114
|
var params = {
|
|
115
|
-
'contextStack': (
|
|
115
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
116
116
|
};
|
|
117
117
|
return axios_1.default.get(url, {
|
|
118
118
|
params: params,
|
|
@@ -124,21 +124,21 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
126
|
Gs2DatastoreRestClient.prototype.updateNamespace = function (request) {
|
|
127
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
128
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
127
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
128
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
129
129
|
.replace('{service}', 'datastore')
|
|
130
130
|
.replace('{region}', this.session.region)
|
|
131
|
-
.replace('{namespaceName}', String((
|
|
131
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
132
132
|
var headers = this.createAuthorizedHeaders();
|
|
133
133
|
if (request.getRequestId()) {
|
|
134
134
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
135
135
|
}
|
|
136
136
|
var body = {
|
|
137
|
-
'contextStack': (
|
|
138
|
-
'description': (
|
|
139
|
-
'transactionSetting': (
|
|
140
|
-
'logSetting': (
|
|
141
|
-
'doneUploadScript': (
|
|
137
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
138
|
+
'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
|
|
139
|
+
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
140
|
+
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
141
|
+
'doneUploadScript': (_l = (_k = request.getDoneUploadScript()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
|
|
142
142
|
};
|
|
143
143
|
return axios_1.default.put(url, body, {
|
|
144
144
|
headers: headers,
|
|
@@ -154,17 +154,17 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
156
|
Gs2DatastoreRestClient.prototype.deleteNamespace = function (request) {
|
|
157
|
-
var _a, _b, _c;
|
|
158
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
157
|
+
var _a, _b, _c, _d;
|
|
158
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}')
|
|
159
159
|
.replace('{service}', 'datastore')
|
|
160
160
|
.replace('{region}', this.session.region)
|
|
161
|
-
.replace('{namespaceName}', String((
|
|
161
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
162
162
|
var headers = this.createAuthorizedHeaders();
|
|
163
163
|
if (request.getRequestId()) {
|
|
164
164
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
165
165
|
}
|
|
166
166
|
var params = {
|
|
167
|
-
'contextStack': (
|
|
167
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
168
168
|
};
|
|
169
169
|
return axios_1.default.delete(url, {
|
|
170
170
|
params: params,
|
|
@@ -176,8 +176,8 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
176
176
|
});
|
|
177
177
|
};
|
|
178
178
|
Gs2DatastoreRestClient.prototype.getServiceVersion = function (request) {
|
|
179
|
-
var _a;
|
|
180
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
179
|
+
var _a, _b;
|
|
180
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/version')
|
|
181
181
|
.replace('{service}', 'datastore')
|
|
182
182
|
.replace('{region}', this.session.region);
|
|
183
183
|
var headers = this.createAuthorizedHeaders();
|
|
@@ -185,7 +185,7 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
185
185
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
186
186
|
}
|
|
187
187
|
var params = {
|
|
188
|
-
'contextStack': (
|
|
188
|
+
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
189
189
|
};
|
|
190
190
|
return axios_1.default.get(url, {
|
|
191
191
|
params: params,
|
|
@@ -197,20 +197,20 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
197
197
|
});
|
|
198
198
|
};
|
|
199
199
|
Gs2DatastoreRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
200
|
-
var _a, _b, _c, _d;
|
|
201
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
200
|
+
var _a, _b, _c, _d, _e;
|
|
201
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
202
202
|
.replace('{service}', 'datastore')
|
|
203
203
|
.replace('{region}', this.session.region)
|
|
204
|
-
.replace('{userId}', String((
|
|
204
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
205
205
|
var headers = this.createAuthorizedHeaders();
|
|
206
206
|
if (request.getRequestId()) {
|
|
207
207
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
208
208
|
}
|
|
209
209
|
if (request.getTimeOffsetToken()) {
|
|
210
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
210
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
211
211
|
}
|
|
212
212
|
var body = {
|
|
213
|
-
'contextStack': (
|
|
213
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
214
214
|
};
|
|
215
215
|
return axios_1.default.post(url, body, {
|
|
216
216
|
headers: headers,
|
|
@@ -226,20 +226,20 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
226
226
|
});
|
|
227
227
|
};
|
|
228
228
|
Gs2DatastoreRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
229
|
-
var _a, _b, _c, _d;
|
|
230
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
229
|
+
var _a, _b, _c, _d, _e;
|
|
230
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/dump/user/{userId}')
|
|
231
231
|
.replace('{service}', 'datastore')
|
|
232
232
|
.replace('{region}', this.session.region)
|
|
233
|
-
.replace('{userId}', String((
|
|
233
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
234
234
|
var headers = this.createAuthorizedHeaders();
|
|
235
235
|
if (request.getRequestId()) {
|
|
236
236
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
237
237
|
}
|
|
238
238
|
if (request.getTimeOffsetToken()) {
|
|
239
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
239
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
240
240
|
}
|
|
241
241
|
var params = {
|
|
242
|
-
'contextStack': (
|
|
242
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
243
243
|
};
|
|
244
244
|
return axios_1.default.get(url, {
|
|
245
245
|
params: params,
|
|
@@ -251,20 +251,20 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
253
|
Gs2DatastoreRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
254
|
-
var _a, _b, _c, _d;
|
|
255
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
254
|
+
var _a, _b, _c, _d, _e;
|
|
255
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
256
256
|
.replace('{service}', 'datastore')
|
|
257
257
|
.replace('{region}', this.session.region)
|
|
258
|
-
.replace('{userId}', String((
|
|
258
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
259
259
|
var headers = this.createAuthorizedHeaders();
|
|
260
260
|
if (request.getRequestId()) {
|
|
261
261
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
262
262
|
}
|
|
263
263
|
if (request.getTimeOffsetToken()) {
|
|
264
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
264
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
265
265
|
}
|
|
266
266
|
var body = {
|
|
267
|
-
'contextStack': (
|
|
267
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
268
268
|
};
|
|
269
269
|
return axios_1.default.post(url, body, {
|
|
270
270
|
headers: headers,
|
|
@@ -280,20 +280,20 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
280
280
|
});
|
|
281
281
|
};
|
|
282
282
|
Gs2DatastoreRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
283
|
-
var _a, _b, _c, _d;
|
|
284
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
283
|
+
var _a, _b, _c, _d, _e;
|
|
284
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/clean/user/{userId}')
|
|
285
285
|
.replace('{service}', 'datastore')
|
|
286
286
|
.replace('{region}', this.session.region)
|
|
287
|
-
.replace('{userId}', String((
|
|
287
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
288
288
|
var headers = this.createAuthorizedHeaders();
|
|
289
289
|
if (request.getRequestId()) {
|
|
290
290
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
291
291
|
}
|
|
292
292
|
if (request.getTimeOffsetToken()) {
|
|
293
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
293
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
294
294
|
}
|
|
295
295
|
var params = {
|
|
296
|
-
'contextStack': (
|
|
296
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
297
297
|
};
|
|
298
298
|
return axios_1.default.get(url, {
|
|
299
299
|
params: params,
|
|
@@ -305,20 +305,20 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
305
305
|
});
|
|
306
306
|
};
|
|
307
307
|
Gs2DatastoreRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
308
|
-
var _a, _b, _c, _d;
|
|
309
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
308
|
+
var _a, _b, _c, _d, _e;
|
|
309
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/prepare')
|
|
310
310
|
.replace('{service}', 'datastore')
|
|
311
311
|
.replace('{region}', this.session.region)
|
|
312
|
-
.replace('{userId}', String((
|
|
312
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
313
313
|
var headers = this.createAuthorizedHeaders();
|
|
314
314
|
if (request.getRequestId()) {
|
|
315
315
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
316
316
|
}
|
|
317
317
|
if (request.getTimeOffsetToken()) {
|
|
318
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
318
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
319
319
|
}
|
|
320
320
|
var body = {
|
|
321
|
-
'contextStack': (
|
|
321
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
322
322
|
};
|
|
323
323
|
return axios_1.default.post(url, body, {
|
|
324
324
|
headers: headers,
|
|
@@ -334,21 +334,21 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
334
334
|
});
|
|
335
335
|
};
|
|
336
336
|
Gs2DatastoreRestClient.prototype.importUserDataByUserId = function (request) {
|
|
337
|
-
var _a, _b, _c, _d, _e;
|
|
338
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
337
|
+
var _a, _b, _c, _d, _e, _f;
|
|
338
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}')
|
|
339
339
|
.replace('{service}', 'datastore')
|
|
340
340
|
.replace('{region}', this.session.region)
|
|
341
|
-
.replace('{userId}', String((
|
|
341
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'));
|
|
342
342
|
var headers = this.createAuthorizedHeaders();
|
|
343
343
|
if (request.getRequestId()) {
|
|
344
344
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
345
345
|
}
|
|
346
346
|
if (request.getTimeOffsetToken()) {
|
|
347
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
347
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
348
348
|
}
|
|
349
349
|
var body = {
|
|
350
|
-
'contextStack': (
|
|
351
|
-
'uploadToken': (
|
|
350
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
351
|
+
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
352
352
|
};
|
|
353
353
|
return axios_1.default.post(url, body, {
|
|
354
354
|
headers: headers,
|
|
@@ -364,21 +364,21 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
364
364
|
});
|
|
365
365
|
};
|
|
366
366
|
Gs2DatastoreRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
367
|
-
var _a, _b, _c, _d, _e, _f;
|
|
368
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
367
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
368
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/system/import/user/{userId}/{uploadToken}')
|
|
369
369
|
.replace('{service}', 'datastore')
|
|
370
370
|
.replace('{region}', this.session.region)
|
|
371
|
-
.replace('{userId}', String((
|
|
372
|
-
.replace('{uploadToken}', String((
|
|
371
|
+
.replace('{userId}', String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null'))
|
|
372
|
+
.replace('{uploadToken}', String((_d = request.getUploadToken()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUploadToken()) !== null && _e !== void 0 ? _e : 'null'));
|
|
373
373
|
var headers = this.createAuthorizedHeaders();
|
|
374
374
|
if (request.getRequestId()) {
|
|
375
375
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
376
376
|
}
|
|
377
377
|
if (request.getTimeOffsetToken()) {
|
|
378
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
378
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
379
379
|
}
|
|
380
380
|
var params = {
|
|
381
|
-
'contextStack': (
|
|
381
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
382
382
|
};
|
|
383
383
|
return axios_1.default.get(url, {
|
|
384
384
|
params: params,
|
|
@@ -390,23 +390,23 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
390
390
|
});
|
|
391
391
|
};
|
|
392
392
|
Gs2DatastoreRestClient.prototype.describeDataObjects = function (request) {
|
|
393
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
394
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data')
|
|
393
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
394
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data')
|
|
395
395
|
.replace('{service}', 'datastore')
|
|
396
396
|
.replace('{region}', this.session.region)
|
|
397
|
-
.replace('{namespaceName}', String((
|
|
397
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
398
398
|
var headers = this.createAuthorizedHeaders();
|
|
399
399
|
if (request.getRequestId()) {
|
|
400
400
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
401
401
|
}
|
|
402
402
|
if (request.getAccessToken()) {
|
|
403
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
403
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
404
404
|
}
|
|
405
405
|
var params = {
|
|
406
|
-
'contextStack': (
|
|
407
|
-
'status': String((
|
|
408
|
-
'pageToken': String((
|
|
409
|
-
'limit': String((
|
|
406
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
407
|
+
'status': String((_f = request.getStatus()) !== null && _f !== void 0 ? _f : null),
|
|
408
|
+
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
409
|
+
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
410
410
|
};
|
|
411
411
|
return axios_1.default.get(url, {
|
|
412
412
|
params: params,
|
|
@@ -418,24 +418,24 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
418
418
|
});
|
|
419
419
|
};
|
|
420
420
|
Gs2DatastoreRestClient.prototype.describeDataObjectsByUserId = function (request) {
|
|
421
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
422
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data')
|
|
421
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
422
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data')
|
|
423
423
|
.replace('{service}', 'datastore')
|
|
424
424
|
.replace('{region}', this.session.region)
|
|
425
|
-
.replace('{namespaceName}', String((
|
|
426
|
-
.replace('{userId}', String((
|
|
425
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
426
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
427
427
|
var headers = this.createAuthorizedHeaders();
|
|
428
428
|
if (request.getRequestId()) {
|
|
429
429
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
430
430
|
}
|
|
431
431
|
if (request.getTimeOffsetToken()) {
|
|
432
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
432
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
433
433
|
}
|
|
434
434
|
var params = {
|
|
435
|
-
'contextStack': (
|
|
436
|
-
'status': String((
|
|
437
|
-
'pageToken': String((
|
|
438
|
-
'limit': String((
|
|
435
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
436
|
+
'status': String((_h = request.getStatus()) !== null && _h !== void 0 ? _h : null),
|
|
437
|
+
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
438
|
+
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
439
439
|
};
|
|
440
440
|
return axios_1.default.get(url, {
|
|
441
441
|
params: params,
|
|
@@ -447,28 +447,28 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
447
447
|
});
|
|
448
448
|
};
|
|
449
449
|
Gs2DatastoreRestClient.prototype.prepareUpload = function (request) {
|
|
450
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
451
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/file')
|
|
450
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
451
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/file')
|
|
452
452
|
.replace('{service}', 'datastore')
|
|
453
453
|
.replace('{region}', this.session.region)
|
|
454
|
-
.replace('{namespaceName}', String((
|
|
454
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
455
455
|
var headers = this.createAuthorizedHeaders();
|
|
456
456
|
if (request.getRequestId()) {
|
|
457
457
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
458
458
|
}
|
|
459
459
|
if (request.getAccessToken()) {
|
|
460
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
460
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
461
461
|
}
|
|
462
462
|
if (request.getDuplicationAvoider()) {
|
|
463
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
463
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
464
464
|
}
|
|
465
465
|
var body = {
|
|
466
|
-
'contextStack': (
|
|
467
|
-
'name': (
|
|
468
|
-
'contentType': (
|
|
469
|
-
'scope': (
|
|
470
|
-
'allowUserIds': (
|
|
471
|
-
'updateIfExists': (
|
|
466
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
467
|
+
'name': (_g = request.getName()) !== null && _g !== void 0 ? _g : null,
|
|
468
|
+
'contentType': (_h = request.getContentType()) !== null && _h !== void 0 ? _h : null,
|
|
469
|
+
'scope': (_j = request.getScope()) !== null && _j !== void 0 ? _j : null,
|
|
470
|
+
'allowUserIds': (_k = request.getAllowUserIds()) !== null && _k !== void 0 ? _k : null,
|
|
471
|
+
'updateIfExists': (_l = request.getUpdateIfExists()) !== null && _l !== void 0 ? _l : null,
|
|
472
472
|
};
|
|
473
473
|
return axios_1.default.post(url, body, {
|
|
474
474
|
headers: headers,
|
|
@@ -484,29 +484,29 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
484
484
|
});
|
|
485
485
|
};
|
|
486
486
|
Gs2DatastoreRestClient.prototype.prepareUploadByUserId = function (request) {
|
|
487
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
488
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/file')
|
|
487
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
488
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/file')
|
|
489
489
|
.replace('{service}', 'datastore')
|
|
490
490
|
.replace('{region}', this.session.region)
|
|
491
|
-
.replace('{namespaceName}', String((
|
|
492
|
-
.replace('{userId}', String((
|
|
491
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
492
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
493
493
|
var headers = this.createAuthorizedHeaders();
|
|
494
494
|
if (request.getRequestId()) {
|
|
495
495
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
496
496
|
}
|
|
497
497
|
if (request.getDuplicationAvoider()) {
|
|
498
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
498
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
499
499
|
}
|
|
500
500
|
if (request.getTimeOffsetToken()) {
|
|
501
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
501
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
502
502
|
}
|
|
503
503
|
var body = {
|
|
504
|
-
'contextStack': (
|
|
505
|
-
'name': (
|
|
506
|
-
'contentType': (
|
|
507
|
-
'scope': (
|
|
508
|
-
'allowUserIds': (
|
|
509
|
-
'updateIfExists': (
|
|
504
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
505
|
+
'name': (_j = request.getName()) !== null && _j !== void 0 ? _j : null,
|
|
506
|
+
'contentType': (_k = request.getContentType()) !== null && _k !== void 0 ? _k : null,
|
|
507
|
+
'scope': (_l = request.getScope()) !== null && _l !== void 0 ? _l : null,
|
|
508
|
+
'allowUserIds': (_m = request.getAllowUserIds()) !== null && _m !== void 0 ? _m : null,
|
|
509
|
+
'updateIfExists': (_o = request.getUpdateIfExists()) !== null && _o !== void 0 ? _o : null,
|
|
510
510
|
};
|
|
511
511
|
return axios_1.default.post(url, body, {
|
|
512
512
|
headers: headers,
|
|
@@ -522,26 +522,26 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
522
522
|
});
|
|
523
523
|
};
|
|
524
524
|
Gs2DatastoreRestClient.prototype.updateDataObject = function (request) {
|
|
525
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
526
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}')
|
|
525
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
526
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}')
|
|
527
527
|
.replace('{service}', 'datastore')
|
|
528
528
|
.replace('{region}', this.session.region)
|
|
529
|
-
.replace('{namespaceName}', String((
|
|
530
|
-
.replace('{dataObjectName}', String((
|
|
529
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
530
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
531
531
|
var headers = this.createAuthorizedHeaders();
|
|
532
532
|
if (request.getRequestId()) {
|
|
533
533
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
534
534
|
}
|
|
535
535
|
if (request.getAccessToken()) {
|
|
536
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
536
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
537
537
|
}
|
|
538
538
|
if (request.getDuplicationAvoider()) {
|
|
539
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
539
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
540
540
|
}
|
|
541
541
|
var body = {
|
|
542
|
-
'contextStack': (
|
|
543
|
-
'scope': (
|
|
544
|
-
'allowUserIds': (
|
|
542
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
543
|
+
'scope': (_j = request.getScope()) !== null && _j !== void 0 ? _j : null,
|
|
544
|
+
'allowUserIds': (_k = request.getAllowUserIds()) !== null && _k !== void 0 ? _k : null,
|
|
545
545
|
};
|
|
546
546
|
return axios_1.default.post(url, body, {
|
|
547
547
|
headers: headers,
|
|
@@ -557,27 +557,27 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
557
557
|
});
|
|
558
558
|
};
|
|
559
559
|
Gs2DatastoreRestClient.prototype.updateDataObjectByUserId = function (request) {
|
|
560
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
561
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}')
|
|
560
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
561
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}')
|
|
562
562
|
.replace('{service}', 'datastore')
|
|
563
563
|
.replace('{region}', this.session.region)
|
|
564
|
-
.replace('{namespaceName}', String((
|
|
565
|
-
.replace('{dataObjectName}', String((
|
|
566
|
-
.replace('{userId}', String((
|
|
564
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
565
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
566
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
567
567
|
var headers = this.createAuthorizedHeaders();
|
|
568
568
|
if (request.getRequestId()) {
|
|
569
569
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
570
570
|
}
|
|
571
571
|
if (request.getDuplicationAvoider()) {
|
|
572
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
572
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
573
573
|
}
|
|
574
574
|
if (request.getTimeOffsetToken()) {
|
|
575
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
575
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
576
576
|
}
|
|
577
577
|
var body = {
|
|
578
|
-
'contextStack': (
|
|
579
|
-
'scope': (
|
|
580
|
-
'allowUserIds': (
|
|
578
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
579
|
+
'scope': (_l = request.getScope()) !== null && _l !== void 0 ? _l : null,
|
|
580
|
+
'allowUserIds': (_m = request.getAllowUserIds()) !== null && _m !== void 0 ? _m : null,
|
|
581
581
|
};
|
|
582
582
|
return axios_1.default.post(url, body, {
|
|
583
583
|
headers: headers,
|
|
@@ -593,25 +593,25 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
593
593
|
});
|
|
594
594
|
};
|
|
595
595
|
Gs2DatastoreRestClient.prototype.prepareReUpload = function (request) {
|
|
596
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
597
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/file/reUpload')
|
|
596
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
597
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/file/reUpload')
|
|
598
598
|
.replace('{service}', 'datastore')
|
|
599
599
|
.replace('{region}', this.session.region)
|
|
600
|
-
.replace('{namespaceName}', String((
|
|
601
|
-
.replace('{dataObjectName}', String((
|
|
600
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
601
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
602
602
|
var headers = this.createAuthorizedHeaders();
|
|
603
603
|
if (request.getRequestId()) {
|
|
604
604
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
605
605
|
}
|
|
606
606
|
if (request.getAccessToken()) {
|
|
607
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
607
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
608
608
|
}
|
|
609
609
|
if (request.getDuplicationAvoider()) {
|
|
610
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
610
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
611
611
|
}
|
|
612
612
|
var body = {
|
|
613
|
-
'contextStack': (
|
|
614
|
-
'contentType': (
|
|
613
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
614
|
+
'contentType': (_j = request.getContentType()) !== null && _j !== void 0 ? _j : null,
|
|
615
615
|
};
|
|
616
616
|
return axios_1.default.post(url, body, {
|
|
617
617
|
headers: headers,
|
|
@@ -627,26 +627,26 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
627
627
|
});
|
|
628
628
|
};
|
|
629
629
|
Gs2DatastoreRestClient.prototype.prepareReUploadByUserId = function (request) {
|
|
630
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
631
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/file/reUpload')
|
|
630
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
631
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/file/reUpload')
|
|
632
632
|
.replace('{service}', 'datastore')
|
|
633
633
|
.replace('{region}', this.session.region)
|
|
634
|
-
.replace('{namespaceName}', String((
|
|
635
|
-
.replace('{dataObjectName}', String((
|
|
636
|
-
.replace('{userId}', String((
|
|
634
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
635
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
636
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
637
637
|
var headers = this.createAuthorizedHeaders();
|
|
638
638
|
if (request.getRequestId()) {
|
|
639
639
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
640
640
|
}
|
|
641
641
|
if (request.getDuplicationAvoider()) {
|
|
642
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
642
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
643
643
|
}
|
|
644
644
|
if (request.getTimeOffsetToken()) {
|
|
645
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
645
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
646
646
|
}
|
|
647
647
|
var body = {
|
|
648
|
-
'contextStack': (
|
|
649
|
-
'contentType': (
|
|
648
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
649
|
+
'contentType': (_l = request.getContentType()) !== null && _l !== void 0 ? _l : null,
|
|
650
650
|
};
|
|
651
651
|
return axios_1.default.post(url, body, {
|
|
652
652
|
headers: headers,
|
|
@@ -662,24 +662,24 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
662
662
|
});
|
|
663
663
|
};
|
|
664
664
|
Gs2DatastoreRestClient.prototype.doneUpload = function (request) {
|
|
665
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
666
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/done')
|
|
665
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
666
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/done')
|
|
667
667
|
.replace('{service}', 'datastore')
|
|
668
668
|
.replace('{region}', this.session.region)
|
|
669
|
-
.replace('{namespaceName}', String((
|
|
670
|
-
.replace('{dataObjectName}', String((
|
|
669
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
670
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
671
671
|
var headers = this.createAuthorizedHeaders();
|
|
672
672
|
if (request.getRequestId()) {
|
|
673
673
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
674
674
|
}
|
|
675
675
|
if (request.getAccessToken()) {
|
|
676
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
676
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
677
677
|
}
|
|
678
678
|
if (request.getDuplicationAvoider()) {
|
|
679
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
679
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
680
680
|
}
|
|
681
681
|
var body = {
|
|
682
|
-
'contextStack': (
|
|
682
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
683
683
|
};
|
|
684
684
|
return axios_1.default.post(url, body, {
|
|
685
685
|
headers: headers,
|
|
@@ -695,25 +695,25 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
695
695
|
});
|
|
696
696
|
};
|
|
697
697
|
Gs2DatastoreRestClient.prototype.doneUploadByUserId = function (request) {
|
|
698
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
699
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/done')
|
|
698
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
699
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/done')
|
|
700
700
|
.replace('{service}', 'datastore')
|
|
701
701
|
.replace('{region}', this.session.region)
|
|
702
|
-
.replace('{namespaceName}', String((
|
|
703
|
-
.replace('{dataObjectName}', String((
|
|
704
|
-
.replace('{userId}', String((
|
|
702
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
703
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
704
|
+
.replace('{userId}', String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getUserId()) !== null && _g !== void 0 ? _g : 'null'));
|
|
705
705
|
var headers = this.createAuthorizedHeaders();
|
|
706
706
|
if (request.getRequestId()) {
|
|
707
707
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
708
708
|
}
|
|
709
709
|
if (request.getDuplicationAvoider()) {
|
|
710
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
710
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
711
711
|
}
|
|
712
712
|
if (request.getTimeOffsetToken()) {
|
|
713
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
713
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
714
714
|
}
|
|
715
715
|
var body = {
|
|
716
|
-
'contextStack': (
|
|
716
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
717
717
|
};
|
|
718
718
|
return axios_1.default.post(url, body, {
|
|
719
719
|
headers: headers,
|
|
@@ -729,24 +729,24 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
729
729
|
});
|
|
730
730
|
};
|
|
731
731
|
Gs2DatastoreRestClient.prototype.deleteDataObject = function (request) {
|
|
732
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
733
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}')
|
|
732
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
733
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}')
|
|
734
734
|
.replace('{service}', 'datastore')
|
|
735
735
|
.replace('{region}', this.session.region)
|
|
736
|
-
.replace('{namespaceName}', String((
|
|
737
|
-
.replace('{dataObjectName}', String((
|
|
736
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
737
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
738
738
|
var headers = this.createAuthorizedHeaders();
|
|
739
739
|
if (request.getRequestId()) {
|
|
740
740
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
741
741
|
}
|
|
742
742
|
if (request.getAccessToken()) {
|
|
743
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
743
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
744
744
|
}
|
|
745
745
|
if (request.getDuplicationAvoider()) {
|
|
746
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
746
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
747
747
|
}
|
|
748
748
|
var params = {
|
|
749
|
-
'contextStack': (
|
|
749
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
750
750
|
};
|
|
751
751
|
return axios_1.default.delete(url, {
|
|
752
752
|
params: params,
|
|
@@ -758,25 +758,25 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
758
758
|
});
|
|
759
759
|
};
|
|
760
760
|
Gs2DatastoreRestClient.prototype.deleteDataObjectByUserId = function (request) {
|
|
761
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
762
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}')
|
|
761
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
762
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}')
|
|
763
763
|
.replace('{service}', 'datastore')
|
|
764
764
|
.replace('{region}', this.session.region)
|
|
765
|
-
.replace('{namespaceName}', String((
|
|
766
|
-
.replace('{userId}', String((
|
|
767
|
-
.replace('{dataObjectName}', String((
|
|
765
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
766
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
767
|
+
.replace('{dataObjectName}', String((_f = request.getDataObjectName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getDataObjectName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
768
768
|
var headers = this.createAuthorizedHeaders();
|
|
769
769
|
if (request.getRequestId()) {
|
|
770
770
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
771
771
|
}
|
|
772
772
|
if (request.getDuplicationAvoider()) {
|
|
773
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
773
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
774
774
|
}
|
|
775
775
|
if (request.getTimeOffsetToken()) {
|
|
776
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
776
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
777
777
|
}
|
|
778
778
|
var params = {
|
|
779
|
-
'contextStack': (
|
|
779
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
780
780
|
};
|
|
781
781
|
return axios_1.default.delete(url, {
|
|
782
782
|
params: params,
|
|
@@ -788,24 +788,24 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
788
788
|
});
|
|
789
789
|
};
|
|
790
790
|
Gs2DatastoreRestClient.prototype.prepareDownload = function (request) {
|
|
791
|
-
var _a, _b, _c, _d, _e, _f;
|
|
792
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/file')
|
|
791
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
792
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/file')
|
|
793
793
|
.replace('{service}', 'datastore')
|
|
794
794
|
.replace('{region}', this.session.region)
|
|
795
|
-
.replace('{namespaceName}', String((
|
|
795
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
796
796
|
var headers = this.createAuthorizedHeaders();
|
|
797
797
|
if (request.getRequestId()) {
|
|
798
798
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
799
799
|
}
|
|
800
800
|
if (request.getAccessToken()) {
|
|
801
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
801
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_d = request.getAccessToken()) !== null && _d !== void 0 ? _d : null;
|
|
802
802
|
}
|
|
803
803
|
if (request.getDuplicationAvoider()) {
|
|
804
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
804
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
805
805
|
}
|
|
806
806
|
var body = {
|
|
807
|
-
'contextStack': (
|
|
808
|
-
'dataObjectId': (
|
|
807
|
+
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
808
|
+
'dataObjectId': (_g = request.getDataObjectId()) !== null && _g !== void 0 ? _g : null,
|
|
809
809
|
};
|
|
810
810
|
return axios_1.default.post(url, body, {
|
|
811
811
|
headers: headers,
|
|
@@ -821,25 +821,25 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
821
821
|
});
|
|
822
822
|
};
|
|
823
823
|
Gs2DatastoreRestClient.prototype.prepareDownloadByUserId = function (request) {
|
|
824
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
825
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/file')
|
|
824
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
825
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/file')
|
|
826
826
|
.replace('{service}', 'datastore')
|
|
827
827
|
.replace('{region}', this.session.region)
|
|
828
|
-
.replace('{namespaceName}', String((
|
|
829
|
-
.replace('{userId}', String((
|
|
828
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
829
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'));
|
|
830
830
|
var headers = this.createAuthorizedHeaders();
|
|
831
831
|
if (request.getRequestId()) {
|
|
832
832
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
833
833
|
}
|
|
834
834
|
if (request.getDuplicationAvoider()) {
|
|
835
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
835
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
|
|
836
836
|
}
|
|
837
837
|
if (request.getTimeOffsetToken()) {
|
|
838
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
838
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
|
|
839
839
|
}
|
|
840
840
|
var body = {
|
|
841
|
-
'contextStack': (
|
|
842
|
-
'dataObjectId': (
|
|
841
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
842
|
+
'dataObjectId': (_j = request.getDataObjectId()) !== null && _j !== void 0 ? _j : null,
|
|
843
843
|
};
|
|
844
844
|
return axios_1.default.post(url, body, {
|
|
845
845
|
headers: headers,
|
|
@@ -855,25 +855,25 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
855
855
|
});
|
|
856
856
|
};
|
|
857
857
|
Gs2DatastoreRestClient.prototype.prepareDownloadByGeneration = function (request) {
|
|
858
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
859
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/file/generation/{generation}')
|
|
858
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
859
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/file/generation/{generation}')
|
|
860
860
|
.replace('{service}', 'datastore')
|
|
861
861
|
.replace('{region}', this.session.region)
|
|
862
|
-
.replace('{namespaceName}', String((
|
|
863
|
-
.replace('{generation}', String((
|
|
862
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
863
|
+
.replace('{generation}', String((_d = request.getGeneration()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getGeneration()) !== null && _e !== void 0 ? _e : 'null'));
|
|
864
864
|
var headers = this.createAuthorizedHeaders();
|
|
865
865
|
if (request.getRequestId()) {
|
|
866
866
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
867
867
|
}
|
|
868
868
|
if (request.getAccessToken()) {
|
|
869
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
869
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
870
870
|
}
|
|
871
871
|
if (request.getDuplicationAvoider()) {
|
|
872
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
872
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
873
873
|
}
|
|
874
874
|
var body = {
|
|
875
|
-
'contextStack': (
|
|
876
|
-
'dataObjectId': (
|
|
875
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
876
|
+
'dataObjectId': (_j = request.getDataObjectId()) !== null && _j !== void 0 ? _j : null,
|
|
877
877
|
};
|
|
878
878
|
return axios_1.default.post(url, body, {
|
|
879
879
|
headers: headers,
|
|
@@ -889,26 +889,26 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
889
889
|
});
|
|
890
890
|
};
|
|
891
891
|
Gs2DatastoreRestClient.prototype.prepareDownloadByGenerationAndUserId = function (request) {
|
|
892
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
893
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/file/generation/{generation}')
|
|
892
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
893
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/file/generation/{generation}')
|
|
894
894
|
.replace('{service}', 'datastore')
|
|
895
895
|
.replace('{region}', this.session.region)
|
|
896
|
-
.replace('{namespaceName}', String((
|
|
897
|
-
.replace('{userId}', String((
|
|
898
|
-
.replace('{generation}', String((
|
|
896
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
897
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
898
|
+
.replace('{generation}', String((_f = request.getGeneration()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getGeneration()) !== null && _g !== void 0 ? _g : 'null'));
|
|
899
899
|
var headers = this.createAuthorizedHeaders();
|
|
900
900
|
if (request.getRequestId()) {
|
|
901
901
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
902
902
|
}
|
|
903
903
|
if (request.getDuplicationAvoider()) {
|
|
904
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
904
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
905
905
|
}
|
|
906
906
|
if (request.getTimeOffsetToken()) {
|
|
907
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
907
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
908
908
|
}
|
|
909
909
|
var body = {
|
|
910
|
-
'contextStack': (
|
|
911
|
-
'dataObjectId': (
|
|
910
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
911
|
+
'dataObjectId': (_l = request.getDataObjectId()) !== null && _l !== void 0 ? _l : null,
|
|
912
912
|
};
|
|
913
913
|
return axios_1.default.post(url, body, {
|
|
914
914
|
headers: headers,
|
|
@@ -924,24 +924,24 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
924
924
|
});
|
|
925
925
|
};
|
|
926
926
|
Gs2DatastoreRestClient.prototype.prepareDownloadOwnData = function (request) {
|
|
927
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
928
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/file')
|
|
927
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
928
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/file')
|
|
929
929
|
.replace('{service}', 'datastore')
|
|
930
930
|
.replace('{region}', this.session.region)
|
|
931
|
-
.replace('{namespaceName}', String((
|
|
932
|
-
.replace('{dataObjectName}', String((
|
|
931
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
932
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
933
933
|
var headers = this.createAuthorizedHeaders();
|
|
934
934
|
if (request.getRequestId()) {
|
|
935
935
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
936
936
|
}
|
|
937
937
|
if (request.getAccessToken()) {
|
|
938
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
938
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
939
939
|
}
|
|
940
940
|
if (request.getDuplicationAvoider()) {
|
|
941
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
941
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
|
|
942
942
|
}
|
|
943
943
|
var body = {
|
|
944
|
-
'contextStack': (
|
|
944
|
+
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
945
945
|
};
|
|
946
946
|
return axios_1.default.post(url, body, {
|
|
947
947
|
headers: headers,
|
|
@@ -957,25 +957,25 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
957
957
|
});
|
|
958
958
|
};
|
|
959
959
|
Gs2DatastoreRestClient.prototype.prepareDownloadByUserIdAndDataObjectName = function (request) {
|
|
960
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
961
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/file')
|
|
960
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
961
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/file')
|
|
962
962
|
.replace('{service}', 'datastore')
|
|
963
963
|
.replace('{region}', this.session.region)
|
|
964
|
-
.replace('{namespaceName}', String((
|
|
965
|
-
.replace('{userId}', String((
|
|
966
|
-
.replace('{dataObjectName}', String((
|
|
964
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
965
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
966
|
+
.replace('{dataObjectName}', String((_f = request.getDataObjectName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getDataObjectName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
967
967
|
var headers = this.createAuthorizedHeaders();
|
|
968
968
|
if (request.getRequestId()) {
|
|
969
969
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
970
970
|
}
|
|
971
971
|
if (request.getDuplicationAvoider()) {
|
|
972
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
972
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_h = request.getDuplicationAvoider()) !== null && _h !== void 0 ? _h : null;
|
|
973
973
|
}
|
|
974
974
|
if (request.getTimeOffsetToken()) {
|
|
975
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
975
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
|
|
976
976
|
}
|
|
977
977
|
var params = {
|
|
978
|
-
'contextStack': (
|
|
978
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
979
979
|
};
|
|
980
980
|
return axios_1.default.get(url, {
|
|
981
981
|
params: params,
|
|
@@ -987,25 +987,25 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
987
987
|
});
|
|
988
988
|
};
|
|
989
989
|
Gs2DatastoreRestClient.prototype.prepareDownloadOwnDataByGeneration = function (request) {
|
|
990
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
991
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/generation/{generation}')
|
|
990
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
991
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/generation/{generation}')
|
|
992
992
|
.replace('{service}', 'datastore')
|
|
993
993
|
.replace('{region}', this.session.region)
|
|
994
|
-
.replace('{namespaceName}', String((
|
|
995
|
-
.replace('{dataObjectName}', String((
|
|
996
|
-
.replace('{generation}', String((
|
|
994
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
995
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
996
|
+
.replace('{generation}', String((_f = request.getGeneration()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getGeneration()) !== null && _g !== void 0 ? _g : 'null'));
|
|
997
997
|
var headers = this.createAuthorizedHeaders();
|
|
998
998
|
if (request.getRequestId()) {
|
|
999
999
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1000
1000
|
}
|
|
1001
1001
|
if (request.getAccessToken()) {
|
|
1002
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1002
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1003
1003
|
}
|
|
1004
1004
|
if (request.getDuplicationAvoider()) {
|
|
1005
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1005
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_j = request.getDuplicationAvoider()) !== null && _j !== void 0 ? _j : null;
|
|
1006
1006
|
}
|
|
1007
1007
|
var body = {
|
|
1008
|
-
'contextStack': (
|
|
1008
|
+
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1009
1009
|
};
|
|
1010
1010
|
return axios_1.default.post(url, body, {
|
|
1011
1011
|
headers: headers,
|
|
@@ -1021,26 +1021,26 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1021
1021
|
});
|
|
1022
1022
|
};
|
|
1023
1023
|
Gs2DatastoreRestClient.prototype.prepareDownloadByUserIdAndDataObjectNameAndGeneration = function (request) {
|
|
1024
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1025
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/generation/{generation}')
|
|
1024
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1025
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/generation/{generation}')
|
|
1026
1026
|
.replace('{service}', 'datastore')
|
|
1027
1027
|
.replace('{region}', this.session.region)
|
|
1028
|
-
.replace('{namespaceName}', String((
|
|
1029
|
-
.replace('{userId}', String((
|
|
1030
|
-
.replace('{dataObjectName}', String((
|
|
1031
|
-
.replace('{generation}', String((
|
|
1028
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1029
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1030
|
+
.replace('{dataObjectName}', String((_f = request.getDataObjectName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getDataObjectName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1031
|
+
.replace('{generation}', String((_h = request.getGeneration()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getGeneration()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1032
1032
|
var headers = this.createAuthorizedHeaders();
|
|
1033
1033
|
if (request.getRequestId()) {
|
|
1034
1034
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1035
1035
|
}
|
|
1036
1036
|
if (request.getDuplicationAvoider()) {
|
|
1037
|
-
headers['X-GS2-DUPLICATION-AVOIDER'] = (
|
|
1037
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_k = request.getDuplicationAvoider()) !== null && _k !== void 0 ? _k : null;
|
|
1038
1038
|
}
|
|
1039
1039
|
if (request.getTimeOffsetToken()) {
|
|
1040
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1040
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_l = request.getTimeOffsetToken()) !== null && _l !== void 0 ? _l : null;
|
|
1041
1041
|
}
|
|
1042
1042
|
var body = {
|
|
1043
|
-
'contextStack': (
|
|
1043
|
+
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1044
1044
|
};
|
|
1045
1045
|
return axios_1.default.post(url, body, {
|
|
1046
1046
|
headers: headers,
|
|
@@ -1056,18 +1056,18 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
};
|
|
1058
1058
|
Gs2DatastoreRestClient.prototype.restoreDataObject = function (request) {
|
|
1059
|
-
var _a, _b, _c, _d;
|
|
1060
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/file/restore')
|
|
1059
|
+
var _a, _b, _c, _d, _e;
|
|
1060
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/file/restore')
|
|
1061
1061
|
.replace('{service}', 'datastore')
|
|
1062
1062
|
.replace('{region}', this.session.region)
|
|
1063
|
-
.replace('{namespaceName}', String((
|
|
1063
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'));
|
|
1064
1064
|
var headers = this.createAuthorizedHeaders();
|
|
1065
1065
|
if (request.getRequestId()) {
|
|
1066
1066
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1067
1067
|
}
|
|
1068
1068
|
var body = {
|
|
1069
|
-
'contextStack': (
|
|
1070
|
-
'dataObjectId': (
|
|
1069
|
+
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1070
|
+
'dataObjectId': (_e = request.getDataObjectId()) !== null && _e !== void 0 ? _e : null,
|
|
1071
1071
|
};
|
|
1072
1072
|
return axios_1.default.post(url, body, {
|
|
1073
1073
|
headers: headers,
|
|
@@ -1083,23 +1083,23 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1083
1083
|
});
|
|
1084
1084
|
};
|
|
1085
1085
|
Gs2DatastoreRestClient.prototype.describeDataObjectHistories = function (request) {
|
|
1086
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1087
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/history')
|
|
1086
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1087
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/history')
|
|
1088
1088
|
.replace('{service}', 'datastore')
|
|
1089
1089
|
.replace('{region}', this.session.region)
|
|
1090
|
-
.replace('{namespaceName}', String((
|
|
1091
|
-
.replace('{dataObjectName}', String((
|
|
1090
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1091
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'));
|
|
1092
1092
|
var headers = this.createAuthorizedHeaders();
|
|
1093
1093
|
if (request.getRequestId()) {
|
|
1094
1094
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1095
1095
|
}
|
|
1096
1096
|
if (request.getAccessToken()) {
|
|
1097
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1097
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_f = request.getAccessToken()) !== null && _f !== void 0 ? _f : null;
|
|
1098
1098
|
}
|
|
1099
1099
|
var params = {
|
|
1100
|
-
'contextStack': (
|
|
1101
|
-
'pageToken': String((
|
|
1102
|
-
'limit': String((
|
|
1100
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1101
|
+
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1102
|
+
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1103
1103
|
};
|
|
1104
1104
|
return axios_1.default.get(url, {
|
|
1105
1105
|
params: params,
|
|
@@ -1111,24 +1111,24 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1111
1111
|
});
|
|
1112
1112
|
};
|
|
1113
1113
|
Gs2DatastoreRestClient.prototype.describeDataObjectHistoriesByUserId = function (request) {
|
|
1114
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1115
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/history')
|
|
1114
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1115
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/history')
|
|
1116
1116
|
.replace('{service}', 'datastore')
|
|
1117
1117
|
.replace('{region}', this.session.region)
|
|
1118
|
-
.replace('{namespaceName}', String((
|
|
1119
|
-
.replace('{userId}', String((
|
|
1120
|
-
.replace('{dataObjectName}', String((
|
|
1118
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1119
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1120
|
+
.replace('{dataObjectName}', String((_f = request.getDataObjectName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getDataObjectName()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1121
1121
|
var headers = this.createAuthorizedHeaders();
|
|
1122
1122
|
if (request.getRequestId()) {
|
|
1123
1123
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1124
1124
|
}
|
|
1125
1125
|
if (request.getTimeOffsetToken()) {
|
|
1126
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1126
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
|
|
1127
1127
|
}
|
|
1128
1128
|
var params = {
|
|
1129
|
-
'contextStack': (
|
|
1130
|
-
'pageToken': String((
|
|
1131
|
-
'limit': String((
|
|
1129
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1130
|
+
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1131
|
+
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1132
1132
|
};
|
|
1133
1133
|
return axios_1.default.get(url, {
|
|
1134
1134
|
params: params,
|
|
@@ -1140,22 +1140,22 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1140
1140
|
});
|
|
1141
1141
|
};
|
|
1142
1142
|
Gs2DatastoreRestClient.prototype.getDataObjectHistory = function (request) {
|
|
1143
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1144
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/history/{generation}')
|
|
1143
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1144
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/data/{dataObjectName}/history/{generation}')
|
|
1145
1145
|
.replace('{service}', 'datastore')
|
|
1146
1146
|
.replace('{region}', this.session.region)
|
|
1147
|
-
.replace('{namespaceName}', String((
|
|
1148
|
-
.replace('{dataObjectName}', String((
|
|
1149
|
-
.replace('{generation}', String((
|
|
1147
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1148
|
+
.replace('{dataObjectName}', String((_d = request.getDataObjectName()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getDataObjectName()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1149
|
+
.replace('{generation}', String((_f = request.getGeneration()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getGeneration()) !== null && _g !== void 0 ? _g : 'null'));
|
|
1150
1150
|
var headers = this.createAuthorizedHeaders();
|
|
1151
1151
|
if (request.getRequestId()) {
|
|
1152
1152
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1153
1153
|
}
|
|
1154
1154
|
if (request.getAccessToken()) {
|
|
1155
|
-
headers['X-GS2-ACCESS-TOKEN'] = (
|
|
1155
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_h = request.getAccessToken()) !== null && _h !== void 0 ? _h : null;
|
|
1156
1156
|
}
|
|
1157
1157
|
var body = {
|
|
1158
|
-
'contextStack': (
|
|
1158
|
+
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1159
1159
|
};
|
|
1160
1160
|
return axios_1.default.post(url, body, {
|
|
1161
1161
|
headers: headers,
|
|
@@ -1171,23 +1171,23 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
};
|
|
1173
1173
|
Gs2DatastoreRestClient.prototype.getDataObjectHistoryByUserId = function (request) {
|
|
1174
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1175
|
-
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/history/{generation}')
|
|
1174
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
1175
|
+
var url = ((_a = Gs2DatastoreRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/data/{dataObjectName}/history/{generation}')
|
|
1176
1176
|
.replace('{service}', 'datastore')
|
|
1177
1177
|
.replace('{region}', this.session.region)
|
|
1178
|
-
.replace('{namespaceName}', String((
|
|
1179
|
-
.replace('{userId}', String((
|
|
1180
|
-
.replace('{dataObjectName}', String((
|
|
1181
|
-
.replace('{generation}', String((
|
|
1178
|
+
.replace('{namespaceName}', String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null') === "" ? "null" : String((_c = request.getNamespaceName()) !== null && _c !== void 0 ? _c : 'null'))
|
|
1179
|
+
.replace('{userId}', String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null') === "" ? "null" : String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null'))
|
|
1180
|
+
.replace('{dataObjectName}', String((_f = request.getDataObjectName()) !== null && _f !== void 0 ? _f : 'null') === "" ? "null" : String((_g = request.getDataObjectName()) !== null && _g !== void 0 ? _g : 'null'))
|
|
1181
|
+
.replace('{generation}', String((_h = request.getGeneration()) !== null && _h !== void 0 ? _h : 'null') === "" ? "null" : String((_j = request.getGeneration()) !== null && _j !== void 0 ? _j : 'null'));
|
|
1182
1182
|
var headers = this.createAuthorizedHeaders();
|
|
1183
1183
|
if (request.getRequestId()) {
|
|
1184
1184
|
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1185
1185
|
}
|
|
1186
1186
|
if (request.getTimeOffsetToken()) {
|
|
1187
|
-
headers['X-GS2-TIME-OFFSET-TOKEN'] = (
|
|
1187
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_k = request.getTimeOffsetToken()) !== null && _k !== void 0 ? _k : null;
|
|
1188
1188
|
}
|
|
1189
1189
|
var body = {
|
|
1190
|
-
'contextStack': (
|
|
1190
|
+
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1191
1191
|
};
|
|
1192
1192
|
return axios_1.default.post(url, body, {
|
|
1193
1193
|
headers: headers,
|
|
@@ -1202,6 +1202,7 @@ var Gs2DatastoreRestClient = /** @class */ (function (_super) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
});
|
|
1204
1204
|
};
|
|
1205
|
+
Gs2DatastoreRestClient.ENDPOINT_HOST = null;
|
|
1205
1206
|
return Gs2DatastoreRestClient;
|
|
1206
1207
|
}(AbstractGs2RestClient_1.default));
|
|
1207
1208
|
exports.default = Gs2DatastoreRestClient;
|