gs2 1.4.12 → 1.4.14
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/friend/request/UpdateProfileByStampSheetRequest.d.ts +25 -0
- package/friend/request/UpdateProfileByStampSheetRequest.js +83 -0
- package/friend/request/UpdateProfileByStampSheetRequest.js.map +1 -0
- package/friend/request/UpdateProfileByStampSheetRequest.ts +90 -0
- package/friend/request/index.d.ts +2 -1
- package/friend/request/index.js +4 -2
- package/friend/request/index.js.map +1 -1
- package/friend/request/index.ts +2 -0
- package/friend/rest.d.ts +1 -0
- package/friend/rest.js +27 -0
- package/friend/rest.js.map +1 -1
- package/friend/rest.ts +31 -0
- package/friend/result/UpdateProfileByStampSheetResult.d.ts +14 -0
- package/friend/result/UpdateProfileByStampSheetResult.js +48 -0
- package/friend/result/UpdateProfileByStampSheetResult.js.map +1 -0
- package/friend/result/UpdateProfileByStampSheetResult.ts +47 -0
- package/friend/result/index.d.ts +2 -1
- package/friend/result/index.js +4 -2
- package/friend/result/index.js.map +1 -1
- package/friend/result/index.ts +2 -0
- package/log/model/InGameLog.d.ts +32 -0
- package/log/model/InGameLog.js +119 -0
- package/log/model/InGameLog.js.map +1 -0
- package/log/model/InGameLog.ts +121 -0
- package/log/model/InGameLogTag.d.ts +17 -0
- package/log/model/InGameLogTag.js +62 -0
- package/log/model/InGameLogTag.js.map +1 -0
- package/log/model/InGameLogTag.ts +60 -0
- package/log/model/index.d.ts +3 -1
- package/log/model/index.js +5 -1
- package/log/model/index.js.map +1 -1
- package/log/model/index.ts +4 -0
- package/log/request/QueryInGameLogRequest.d.ts +58 -0
- package/log/request/QueryInGameLogRequest.js +201 -0
- package/log/request/QueryInGameLogRequest.js.map +1 -0
- package/log/request/QueryInGameLogRequest.ts +211 -0
- package/log/request/SendInGameLogByUserIdRequest.d.ts +42 -0
- package/log/request/SendInGameLogByUserIdRequest.js +145 -0
- package/log/request/SendInGameLogByUserIdRequest.js.map +1 -0
- package/log/request/SendInGameLogByUserIdRequest.ts +155 -0
- package/log/request/SendInGameLogRequest.d.ts +38 -0
- package/log/request/SendInGameLogRequest.js +131 -0
- package/log/request/SendInGameLogRequest.js.map +1 -0
- package/log/request/SendInGameLogRequest.ts +141 -0
- package/log/request/index.d.ts +4 -1
- package/log/request/index.js +7 -1
- package/log/request/index.js.map +1 -1
- package/log/request/index.ts +6 -0
- package/log/rest.d.ts +3 -0
- package/log/rest.js +108 -0
- package/log/rest.js.map +1 -1
- package/log/rest.ts +120 -0
- package/log/result/QueryInGameLogResult.d.ts +26 -0
- package/log/result/QueryInGameLogResult.js +95 -0
- package/log/result/QueryInGameLogResult.js.map +1 -0
- package/log/result/QueryInGameLogResult.ts +106 -0
- package/log/result/SendInGameLogByUserIdResult.d.ts +14 -0
- package/log/result/SendInGameLogByUserIdResult.js +48 -0
- package/log/result/SendInGameLogByUserIdResult.js.map +1 -0
- package/log/result/SendInGameLogByUserIdResult.ts +47 -0
- package/log/result/SendInGameLogResult.d.ts +14 -0
- package/log/result/SendInGameLogResult.js +48 -0
- package/log/result/SendInGameLogResult.js.map +1 -0
- package/log/result/SendInGameLogResult.ts +47 -0
- package/log/result/index.d.ts +4 -1
- package/log/result/index.js +7 -1
- package/log/result/index.js.map +1 -1
- package/log/result/index.ts +6 -0
- package/package.json +1 -1
- package/project/rest.js +2 -1
- package/project/rest.js.map +1 -1
- package/project/rest.ts +1 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Log from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SendInGameLogByUserIdRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private userId: string|null = null;
|
|
27
|
+
private tags: Gs2Log.InGameLogTag[]|null = null;
|
|
28
|
+
private payload: string|null = null;
|
|
29
|
+
private timeOffsetToken: string|null = null;
|
|
30
|
+
private duplicationAvoider: string|null = null;
|
|
31
|
+
|
|
32
|
+
public getRequestId(): string|null {
|
|
33
|
+
return this.requestId;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public setRequestId(requestId: string|null) {
|
|
37
|
+
this.requestId = requestId;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public withRequestId(requestId: string|null): this {
|
|
42
|
+
this.requestId = requestId;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public getContextStack(): string|null {
|
|
47
|
+
return this.contextStack;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public setContextStack(contextStack: string|null) {
|
|
51
|
+
this.contextStack = contextStack;
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public withContextStack(contextStack: string|null): this {
|
|
56
|
+
this.contextStack = contextStack;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
public getNamespaceName(): string|null {
|
|
60
|
+
return this.namespaceName;
|
|
61
|
+
}
|
|
62
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
63
|
+
this.namespaceName = namespaceName;
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
67
|
+
this.namespaceName = namespaceName;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
public getUserId(): string|null {
|
|
71
|
+
return this.userId;
|
|
72
|
+
}
|
|
73
|
+
public setUserId(userId: string|null) {
|
|
74
|
+
this.userId = userId;
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
public withUserId(userId: string|null): this {
|
|
78
|
+
this.userId = userId;
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
public getTags(): Gs2Log.InGameLogTag[]|null {
|
|
82
|
+
return this.tags;
|
|
83
|
+
}
|
|
84
|
+
public setTags(tags: Gs2Log.InGameLogTag[]|null) {
|
|
85
|
+
this.tags = tags;
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
public withTags(tags: Gs2Log.InGameLogTag[]|null): this {
|
|
89
|
+
this.tags = tags;
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
public getPayload(): string|null {
|
|
93
|
+
return this.payload;
|
|
94
|
+
}
|
|
95
|
+
public setPayload(payload: string|null) {
|
|
96
|
+
this.payload = payload;
|
|
97
|
+
return this;
|
|
98
|
+
}
|
|
99
|
+
public withPayload(payload: string|null): this {
|
|
100
|
+
this.payload = payload;
|
|
101
|
+
return this;
|
|
102
|
+
}
|
|
103
|
+
public getTimeOffsetToken(): string|null {
|
|
104
|
+
return this.timeOffsetToken;
|
|
105
|
+
}
|
|
106
|
+
public setTimeOffsetToken(timeOffsetToken: string|null) {
|
|
107
|
+
this.timeOffsetToken = timeOffsetToken;
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
public withTimeOffsetToken(timeOffsetToken: string|null): this {
|
|
111
|
+
this.timeOffsetToken = timeOffsetToken;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public getDuplicationAvoider(): string|null {
|
|
116
|
+
return this.duplicationAvoider;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
120
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
121
|
+
return this;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
125
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public static fromDict(data: {[key: string]: any}): SendInGameLogByUserIdRequest {
|
|
130
|
+
return new SendInGameLogByUserIdRequest()
|
|
131
|
+
.withNamespaceName(data["namespaceName"])
|
|
132
|
+
.withUserId(data["userId"])
|
|
133
|
+
.withTags(data.tags ?
|
|
134
|
+
data.tags.map((item: {[key: string]: any}) => {
|
|
135
|
+
return Gs2Log.InGameLogTag.fromDict(item);
|
|
136
|
+
}
|
|
137
|
+
) : [])
|
|
138
|
+
.withPayload(data["payload"])
|
|
139
|
+
.withTimeOffsetToken(data["timeOffsetToken"]);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
public toDict(): {[key: string]: any} {
|
|
143
|
+
return {
|
|
144
|
+
"namespaceName": this.getNamespaceName(),
|
|
145
|
+
"userId": this.getUserId(),
|
|
146
|
+
"tags": this.getTags() ?
|
|
147
|
+
this.getTags()!.map((item: Gs2Log.InGameLogTag) => {
|
|
148
|
+
return item.toDict();
|
|
149
|
+
}
|
|
150
|
+
) : [],
|
|
151
|
+
"payload": this.getPayload(),
|
|
152
|
+
"timeOffsetToken": this.getTimeOffsetToken(),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
import * as Gs2Log from '../model';
|
|
3
|
+
export default class SendInGameLogRequest implements IRequest {
|
|
4
|
+
private requestId;
|
|
5
|
+
private contextStack;
|
|
6
|
+
private namespaceName;
|
|
7
|
+
private accessToken;
|
|
8
|
+
private tags;
|
|
9
|
+
private payload;
|
|
10
|
+
private duplicationAvoider;
|
|
11
|
+
getRequestId(): string | null;
|
|
12
|
+
setRequestId(requestId: string | null): this;
|
|
13
|
+
withRequestId(requestId: string | null): this;
|
|
14
|
+
getContextStack(): string | null;
|
|
15
|
+
setContextStack(contextStack: string | null): this;
|
|
16
|
+
withContextStack(contextStack: string | null): this;
|
|
17
|
+
getNamespaceName(): string | null;
|
|
18
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
19
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
20
|
+
getAccessToken(): string | null;
|
|
21
|
+
setAccessToken(accessToken: string | null): this;
|
|
22
|
+
withAccessToken(accessToken: string | null): this;
|
|
23
|
+
getTags(): Gs2Log.InGameLogTag[] | null;
|
|
24
|
+
setTags(tags: Gs2Log.InGameLogTag[] | null): this;
|
|
25
|
+
withTags(tags: Gs2Log.InGameLogTag[] | null): this;
|
|
26
|
+
getPayload(): string | null;
|
|
27
|
+
setPayload(payload: string | null): this;
|
|
28
|
+
withPayload(payload: string | null): this;
|
|
29
|
+
getDuplicationAvoider(): string | null;
|
|
30
|
+
setDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
31
|
+
withDuplicationAvoider(duplicationAvoider: string | null): this;
|
|
32
|
+
static fromDict(data: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}): SendInGameLogRequest;
|
|
35
|
+
toDict(): {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Log = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var SendInGameLogRequest = /** @class */ (function () {
|
|
21
|
+
function SendInGameLogRequest() {
|
|
22
|
+
this.requestId = null;
|
|
23
|
+
this.contextStack = null;
|
|
24
|
+
this.namespaceName = null;
|
|
25
|
+
this.accessToken = null;
|
|
26
|
+
this.tags = null;
|
|
27
|
+
this.payload = null;
|
|
28
|
+
this.duplicationAvoider = null;
|
|
29
|
+
}
|
|
30
|
+
SendInGameLogRequest.prototype.getRequestId = function () {
|
|
31
|
+
return this.requestId;
|
|
32
|
+
};
|
|
33
|
+
SendInGameLogRequest.prototype.setRequestId = function (requestId) {
|
|
34
|
+
this.requestId = requestId;
|
|
35
|
+
return this;
|
|
36
|
+
};
|
|
37
|
+
SendInGameLogRequest.prototype.withRequestId = function (requestId) {
|
|
38
|
+
this.requestId = requestId;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
SendInGameLogRequest.prototype.getContextStack = function () {
|
|
42
|
+
return this.contextStack;
|
|
43
|
+
};
|
|
44
|
+
SendInGameLogRequest.prototype.setContextStack = function (contextStack) {
|
|
45
|
+
this.contextStack = contextStack;
|
|
46
|
+
return this;
|
|
47
|
+
};
|
|
48
|
+
SendInGameLogRequest.prototype.withContextStack = function (contextStack) {
|
|
49
|
+
this.contextStack = contextStack;
|
|
50
|
+
return this;
|
|
51
|
+
};
|
|
52
|
+
SendInGameLogRequest.prototype.getNamespaceName = function () {
|
|
53
|
+
return this.namespaceName;
|
|
54
|
+
};
|
|
55
|
+
SendInGameLogRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
56
|
+
this.namespaceName = namespaceName;
|
|
57
|
+
return this;
|
|
58
|
+
};
|
|
59
|
+
SendInGameLogRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
60
|
+
this.namespaceName = namespaceName;
|
|
61
|
+
return this;
|
|
62
|
+
};
|
|
63
|
+
SendInGameLogRequest.prototype.getAccessToken = function () {
|
|
64
|
+
return this.accessToken;
|
|
65
|
+
};
|
|
66
|
+
SendInGameLogRequest.prototype.setAccessToken = function (accessToken) {
|
|
67
|
+
this.accessToken = accessToken;
|
|
68
|
+
return this;
|
|
69
|
+
};
|
|
70
|
+
SendInGameLogRequest.prototype.withAccessToken = function (accessToken) {
|
|
71
|
+
this.accessToken = accessToken;
|
|
72
|
+
return this;
|
|
73
|
+
};
|
|
74
|
+
SendInGameLogRequest.prototype.getTags = function () {
|
|
75
|
+
return this.tags;
|
|
76
|
+
};
|
|
77
|
+
SendInGameLogRequest.prototype.setTags = function (tags) {
|
|
78
|
+
this.tags = tags;
|
|
79
|
+
return this;
|
|
80
|
+
};
|
|
81
|
+
SendInGameLogRequest.prototype.withTags = function (tags) {
|
|
82
|
+
this.tags = tags;
|
|
83
|
+
return this;
|
|
84
|
+
};
|
|
85
|
+
SendInGameLogRequest.prototype.getPayload = function () {
|
|
86
|
+
return this.payload;
|
|
87
|
+
};
|
|
88
|
+
SendInGameLogRequest.prototype.setPayload = function (payload) {
|
|
89
|
+
this.payload = payload;
|
|
90
|
+
return this;
|
|
91
|
+
};
|
|
92
|
+
SendInGameLogRequest.prototype.withPayload = function (payload) {
|
|
93
|
+
this.payload = payload;
|
|
94
|
+
return this;
|
|
95
|
+
};
|
|
96
|
+
SendInGameLogRequest.prototype.getDuplicationAvoider = function () {
|
|
97
|
+
return this.duplicationAvoider;
|
|
98
|
+
};
|
|
99
|
+
SendInGameLogRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
|
|
100
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
101
|
+
return this;
|
|
102
|
+
};
|
|
103
|
+
SendInGameLogRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
|
|
104
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
105
|
+
return this;
|
|
106
|
+
};
|
|
107
|
+
SendInGameLogRequest.fromDict = function (data) {
|
|
108
|
+
return new SendInGameLogRequest()
|
|
109
|
+
.withNamespaceName(data["namespaceName"])
|
|
110
|
+
.withAccessToken(data["accessToken"])
|
|
111
|
+
.withTags(data.tags ?
|
|
112
|
+
data.tags.map(function (item) {
|
|
113
|
+
return Gs2Log.InGameLogTag.fromDict(item);
|
|
114
|
+
}) : [])
|
|
115
|
+
.withPayload(data["payload"]);
|
|
116
|
+
};
|
|
117
|
+
SendInGameLogRequest.prototype.toDict = function () {
|
|
118
|
+
return {
|
|
119
|
+
"namespaceName": this.getNamespaceName(),
|
|
120
|
+
"accessToken": this.getAccessToken(),
|
|
121
|
+
"tags": this.getTags() ?
|
|
122
|
+
this.getTags().map(function (item) {
|
|
123
|
+
return item.toDict();
|
|
124
|
+
}) : [],
|
|
125
|
+
"payload": this.getPayload(),
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
return SendInGameLogRequest;
|
|
129
|
+
}());
|
|
130
|
+
exports.default = SendInGameLogRequest;
|
|
131
|
+
//# sourceMappingURL=SendInGameLogRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendInGameLogRequest.js","sourceRoot":"","sources":["SendInGameLogRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,uDAAkC;AAElC;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CAAC;QAChC,SAAI,GAA+B,IAAI,CAAC;QACxC,YAAO,GAAgB,IAAI,CAAC;QAC5B,uBAAkB,GAAgB,IA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,CAAC,CAAC,CAAC,EAAE,CAAC;aACN,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,qCAAM,GAAb;QACI,OAAO;YACH,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;gBACpB,IAAI,CAAC,OAAO,EAAG,CAAC,GAAG,CAAC,UAAC,IAAyB;oBAC1C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,2BAAC;AAAD,CAAC,AAxHD,IAwHC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Log from '../model'
|
|
20
|
+
|
|
21
|
+
export default class SendInGameLogRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private accessToken: string|null = null;
|
|
27
|
+
private tags: Gs2Log.InGameLogTag[]|null = null;
|
|
28
|
+
private payload: string|null = null;
|
|
29
|
+
private duplicationAvoider: string|null = null;
|
|
30
|
+
|
|
31
|
+
public getRequestId(): string|null {
|
|
32
|
+
return this.requestId;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public setRequestId(requestId: string|null) {
|
|
36
|
+
this.requestId = requestId;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public withRequestId(requestId: string|null): this {
|
|
41
|
+
this.requestId = requestId;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public getContextStack(): string|null {
|
|
46
|
+
return this.contextStack;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public setContextStack(contextStack: string|null) {
|
|
50
|
+
this.contextStack = contextStack;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public withContextStack(contextStack: string|null): this {
|
|
55
|
+
this.contextStack = contextStack;
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
public getNamespaceName(): string|null {
|
|
59
|
+
return this.namespaceName;
|
|
60
|
+
}
|
|
61
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
62
|
+
this.namespaceName = namespaceName;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
66
|
+
this.namespaceName = namespaceName;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
public getAccessToken(): string|null {
|
|
70
|
+
return this.accessToken;
|
|
71
|
+
}
|
|
72
|
+
public setAccessToken(accessToken: string|null) {
|
|
73
|
+
this.accessToken = accessToken;
|
|
74
|
+
return this;
|
|
75
|
+
}
|
|
76
|
+
public withAccessToken(accessToken: string|null): this {
|
|
77
|
+
this.accessToken = accessToken;
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
public getTags(): Gs2Log.InGameLogTag[]|null {
|
|
81
|
+
return this.tags;
|
|
82
|
+
}
|
|
83
|
+
public setTags(tags: Gs2Log.InGameLogTag[]|null) {
|
|
84
|
+
this.tags = tags;
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
87
|
+
public withTags(tags: Gs2Log.InGameLogTag[]|null): this {
|
|
88
|
+
this.tags = tags;
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
91
|
+
public getPayload(): string|null {
|
|
92
|
+
return this.payload;
|
|
93
|
+
}
|
|
94
|
+
public setPayload(payload: string|null) {
|
|
95
|
+
this.payload = payload;
|
|
96
|
+
return this;
|
|
97
|
+
}
|
|
98
|
+
public withPayload(payload: string|null): this {
|
|
99
|
+
this.payload = payload;
|
|
100
|
+
return this;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public getDuplicationAvoider(): string|null {
|
|
104
|
+
return this.duplicationAvoider;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
public setDuplicationAvoider(duplicationAvoider: string|null) {
|
|
108
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
109
|
+
return this;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public withDuplicationAvoider(duplicationAvoider: string|null): this {
|
|
113
|
+
this.duplicationAvoider = duplicationAvoider;
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
public static fromDict(data: {[key: string]: any}): SendInGameLogRequest {
|
|
118
|
+
return new SendInGameLogRequest()
|
|
119
|
+
.withNamespaceName(data["namespaceName"])
|
|
120
|
+
.withAccessToken(data["accessToken"])
|
|
121
|
+
.withTags(data.tags ?
|
|
122
|
+
data.tags.map((item: {[key: string]: any}) => {
|
|
123
|
+
return Gs2Log.InGameLogTag.fromDict(item);
|
|
124
|
+
}
|
|
125
|
+
) : [])
|
|
126
|
+
.withPayload(data["payload"]);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public toDict(): {[key: string]: any} {
|
|
130
|
+
return {
|
|
131
|
+
"namespaceName": this.getNamespaceName(),
|
|
132
|
+
"accessToken": this.getAccessToken(),
|
|
133
|
+
"tags": this.getTags() ?
|
|
134
|
+
this.getTags()!.map((item: Gs2Log.InGameLogTag) => {
|
|
135
|
+
return item.toDict();
|
|
136
|
+
}
|
|
137
|
+
) : [],
|
|
138
|
+
"payload": this.getPayload(),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
package/log/request/index.d.ts
CHANGED
|
@@ -12,9 +12,12 @@ import QueryExecuteStampSheetLogRequest from "./QueryExecuteStampSheetLogRequest
|
|
|
12
12
|
import CountExecuteStampSheetLogRequest from "./CountExecuteStampSheetLogRequest";
|
|
13
13
|
import QueryExecuteStampTaskLogRequest from "./QueryExecuteStampTaskLogRequest";
|
|
14
14
|
import CountExecuteStampTaskLogRequest from "./CountExecuteStampTaskLogRequest";
|
|
15
|
+
import QueryInGameLogRequest from "./QueryInGameLogRequest";
|
|
16
|
+
import SendInGameLogRequest from "./SendInGameLogRequest";
|
|
17
|
+
import SendInGameLogByUserIdRequest from "./SendInGameLogByUserIdRequest";
|
|
15
18
|
import QueryAccessLogWithTelemetryRequest from "./QueryAccessLogWithTelemetryRequest";
|
|
16
19
|
import DescribeInsightsRequest from "./DescribeInsightsRequest";
|
|
17
20
|
import CreateInsightRequest from "./CreateInsightRequest";
|
|
18
21
|
import GetInsightRequest from "./GetInsightRequest";
|
|
19
22
|
import DeleteInsightRequest from "./DeleteInsightRequest";
|
|
20
|
-
export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, QueryAccessLogRequest, CountAccessLogRequest, QueryIssueStampSheetLogRequest, CountIssueStampSheetLogRequest, QueryExecuteStampSheetLogRequest, CountExecuteStampSheetLogRequest, QueryExecuteStampTaskLogRequest, CountExecuteStampTaskLogRequest, QueryAccessLogWithTelemetryRequest, DescribeInsightsRequest, CreateInsightRequest, GetInsightRequest, DeleteInsightRequest, };
|
|
23
|
+
export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, QueryAccessLogRequest, CountAccessLogRequest, QueryIssueStampSheetLogRequest, CountIssueStampSheetLogRequest, QueryExecuteStampSheetLogRequest, CountExecuteStampSheetLogRequest, QueryExecuteStampTaskLogRequest, CountExecuteStampTaskLogRequest, QueryInGameLogRequest, SendInGameLogRequest, SendInGameLogByUserIdRequest, QueryAccessLogWithTelemetryRequest, DescribeInsightsRequest, CreateInsightRequest, GetInsightRequest, DeleteInsightRequest, };
|
package/log/request/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteInsightRequest = exports.GetInsightRequest = exports.CreateInsightRequest = exports.DescribeInsightsRequest = exports.QueryAccessLogWithTelemetryRequest = exports.CountExecuteStampTaskLogRequest = exports.QueryExecuteStampTaskLogRequest = exports.CountExecuteStampSheetLogRequest = exports.QueryExecuteStampSheetLogRequest = exports.CountIssueStampSheetLogRequest = exports.QueryIssueStampSheetLogRequest = exports.CountAccessLogRequest = exports.QueryAccessLogRequest = exports.DeleteNamespaceRequest = exports.UpdateNamespaceRequest = exports.GetNamespaceRequest = exports.GetNamespaceStatusRequest = exports.CreateNamespaceRequest = exports.DescribeNamespacesRequest = void 0;
|
|
3
|
+
exports.DeleteInsightRequest = exports.GetInsightRequest = exports.CreateInsightRequest = exports.DescribeInsightsRequest = exports.QueryAccessLogWithTelemetryRequest = exports.SendInGameLogByUserIdRequest = exports.SendInGameLogRequest = exports.QueryInGameLogRequest = exports.CountExecuteStampTaskLogRequest = exports.QueryExecuteStampTaskLogRequest = exports.CountExecuteStampSheetLogRequest = exports.QueryExecuteStampSheetLogRequest = exports.CountIssueStampSheetLogRequest = exports.QueryIssueStampSheetLogRequest = exports.CountAccessLogRequest = exports.QueryAccessLogRequest = exports.DeleteNamespaceRequest = exports.UpdateNamespaceRequest = exports.GetNamespaceRequest = exports.GetNamespaceStatusRequest = exports.CreateNamespaceRequest = exports.DescribeNamespacesRequest = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -45,6 +45,12 @@ var QueryExecuteStampTaskLogRequest_1 = tslib_1.__importDefault(require("./Query
|
|
|
45
45
|
exports.QueryExecuteStampTaskLogRequest = QueryExecuteStampTaskLogRequest_1.default;
|
|
46
46
|
var CountExecuteStampTaskLogRequest_1 = tslib_1.__importDefault(require("./CountExecuteStampTaskLogRequest"));
|
|
47
47
|
exports.CountExecuteStampTaskLogRequest = CountExecuteStampTaskLogRequest_1.default;
|
|
48
|
+
var QueryInGameLogRequest_1 = tslib_1.__importDefault(require("./QueryInGameLogRequest"));
|
|
49
|
+
exports.QueryInGameLogRequest = QueryInGameLogRequest_1.default;
|
|
50
|
+
var SendInGameLogRequest_1 = tslib_1.__importDefault(require("./SendInGameLogRequest"));
|
|
51
|
+
exports.SendInGameLogRequest = SendInGameLogRequest_1.default;
|
|
52
|
+
var SendInGameLogByUserIdRequest_1 = tslib_1.__importDefault(require("./SendInGameLogByUserIdRequest"));
|
|
53
|
+
exports.SendInGameLogByUserIdRequest = SendInGameLogByUserIdRequest_1.default;
|
|
48
54
|
var QueryAccessLogWithTelemetryRequest_1 = tslib_1.__importDefault(require("./QueryAccessLogWithTelemetryRequest"));
|
|
49
55
|
exports.QueryAccessLogWithTelemetryRequest = QueryAccessLogWithTelemetryRequest_1.default;
|
|
50
56
|
var DescribeInsightsRequest_1 = tslib_1.__importDefault(require("./DescribeInsightsRequest"));
|
package/log/request/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kGAAm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ryExecuteStampSheetLogRequest from "./QueryExecuteStampSheetLogRequest
|
|
|
27
27
|
import CountExecuteStampSheetLogRequest from "./CountExecuteStampSheetLogRequest"
|
|
28
28
|
import QueryExecuteStampTaskLogRequest from "./QueryExecuteStampTaskLogRequest"
|
|
29
29
|
import CountExecuteStampTaskLogRequest from "./CountExecuteStampTaskLogRequest"
|
|
30
|
+
import QueryInGameLogRequest from "./QueryInGameLogRequest"
|
|
31
|
+
import SendInGameLogRequest from "./SendInGameLogRequest"
|
|
32
|
+
import SendInGameLogByUserIdRequest from "./SendInGameLogByUserIdRequest"
|
|
30
33
|
import QueryAccessLogWithTelemetryRequest from "./QueryAccessLogWithTelemetryRequest"
|
|
31
34
|
import DescribeInsightsRequest from "./DescribeInsightsRequest"
|
|
32
35
|
import CreateInsightRequest from "./CreateInsightRequest"
|
|
@@ -48,6 +51,9 @@ export {
|
|
|
48
51
|
CountExecuteStampSheetLogRequest,
|
|
49
52
|
QueryExecuteStampTaskLogRequest,
|
|
50
53
|
CountExecuteStampTaskLogRequest,
|
|
54
|
+
QueryInGameLogRequest,
|
|
55
|
+
SendInGameLogRequest,
|
|
56
|
+
SendInGameLogByUserIdRequest,
|
|
51
57
|
QueryAccessLogWithTelemetryRequest,
|
|
52
58
|
DescribeInsightsRequest,
|
|
53
59
|
CreateInsightRequest,
|
package/log/rest.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export default class Gs2LogRestClient extends AbstractGs2RestClient {
|
|
|
18
18
|
countExecuteStampSheetLog(request: Request.CountExecuteStampSheetLogRequest): Promise<Result.CountExecuteStampSheetLogResult>;
|
|
19
19
|
queryExecuteStampTaskLog(request: Request.QueryExecuteStampTaskLogRequest): Promise<Result.QueryExecuteStampTaskLogResult>;
|
|
20
20
|
countExecuteStampTaskLog(request: Request.CountExecuteStampTaskLogRequest): Promise<Result.CountExecuteStampTaskLogResult>;
|
|
21
|
+
queryInGameLog(request: Request.QueryInGameLogRequest): Promise<Result.QueryInGameLogResult>;
|
|
22
|
+
sendInGameLog(request: Request.SendInGameLogRequest): Promise<Result.SendInGameLogResult>;
|
|
23
|
+
sendInGameLogByUserId(request: Request.SendInGameLogByUserIdRequest): Promise<Result.SendInGameLogByUserIdResult>;
|
|
21
24
|
queryAccessLogWithTelemetry(request: Request.QueryAccessLogWithTelemetryRequest): Promise<Result.QueryAccessLogWithTelemetryResult>;
|
|
22
25
|
describeInsights(request: Request.DescribeInsightsRequest): Promise<Result.DescribeInsightsResult>;
|
|
23
26
|
createInsight(request: Request.CreateInsightRequest): Promise<Result.CreateInsightResult>;
|
package/log/rest.js
CHANGED
|
@@ -466,6 +466,114 @@ var Gs2LogRestClient = /** @class */ (function (_super) {
|
|
|
466
466
|
throw JSON.parse(error.response.data.message);
|
|
467
467
|
});
|
|
468
468
|
};
|
|
469
|
+
Gs2LogRestClient.prototype.queryInGameLog = function (request) {
|
|
470
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
471
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/ingame/log')
|
|
472
|
+
.replace('{service}', 'log')
|
|
473
|
+
.replace('{region}', this.session.region)
|
|
474
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
475
|
+
var headers = this.createAuthorizedHeaders();
|
|
476
|
+
if (request.getRequestId()) {
|
|
477
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
478
|
+
}
|
|
479
|
+
if (request.getDuplicationAvoider()) {
|
|
480
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_c = request.getDuplicationAvoider()) !== null && _c !== void 0 ? _c : null;
|
|
481
|
+
}
|
|
482
|
+
if (request.getTimeOffsetToken()) {
|
|
483
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_d = request.getTimeOffsetToken()) !== null && _d !== void 0 ? _d : null;
|
|
484
|
+
}
|
|
485
|
+
var body = {
|
|
486
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
487
|
+
'userId': (_f = request.getUserId()) !== null && _f !== void 0 ? _f : null,
|
|
488
|
+
'tags': (_h = (_g = request.getTags()) === null || _g === void 0 ? void 0 : _g.map(function (item) { return item.toDict(); })) !== null && _h !== void 0 ? _h : null,
|
|
489
|
+
'begin': (_j = request.getBegin()) !== null && _j !== void 0 ? _j : null,
|
|
490
|
+
'end': (_k = request.getEnd()) !== null && _k !== void 0 ? _k : null,
|
|
491
|
+
'longTerm': (_l = request.getLongTerm()) !== null && _l !== void 0 ? _l : null,
|
|
492
|
+
'pageToken': (_m = request.getPageToken()) !== null && _m !== void 0 ? _m : null,
|
|
493
|
+
'limit': (_o = request.getLimit()) !== null && _o !== void 0 ? _o : null,
|
|
494
|
+
};
|
|
495
|
+
return axios_1.default.post(url, body, {
|
|
496
|
+
headers: headers,
|
|
497
|
+
}).then(function (response) {
|
|
498
|
+
return Result.QueryInGameLogResult.fromDict(response.data);
|
|
499
|
+
}).catch(function (error) {
|
|
500
|
+
if (error.response) {
|
|
501
|
+
throw JSON.parse(error.response.data.message);
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
throw [];
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
};
|
|
508
|
+
Gs2LogRestClient.prototype.sendInGameLog = function (request) {
|
|
509
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
510
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/ingame/log/user/me/send')
|
|
511
|
+
.replace('{service}', 'log')
|
|
512
|
+
.replace('{region}', this.session.region)
|
|
513
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
|
|
514
|
+
var headers = this.createAuthorizedHeaders();
|
|
515
|
+
if (request.getRequestId()) {
|
|
516
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
517
|
+
}
|
|
518
|
+
if (request.getAccessToken()) {
|
|
519
|
+
headers['X-GS2-ACCESS-TOKEN'] = (_c = request.getAccessToken()) !== null && _c !== void 0 ? _c : null;
|
|
520
|
+
}
|
|
521
|
+
if (request.getDuplicationAvoider()) {
|
|
522
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_d = request.getDuplicationAvoider()) !== null && _d !== void 0 ? _d : null;
|
|
523
|
+
}
|
|
524
|
+
var body = {
|
|
525
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
526
|
+
'tags': (_g = (_f = request.getTags()) === null || _f === void 0 ? void 0 : _f.map(function (item) { return item.toDict(); })) !== null && _g !== void 0 ? _g : null,
|
|
527
|
+
'payload': (_h = request.getPayload()) !== null && _h !== void 0 ? _h : null,
|
|
528
|
+
};
|
|
529
|
+
return axios_1.default.post(url, body, {
|
|
530
|
+
headers: headers,
|
|
531
|
+
}).then(function (response) {
|
|
532
|
+
return Result.SendInGameLogResult.fromDict(response.data);
|
|
533
|
+
}).catch(function (error) {
|
|
534
|
+
if (error.response) {
|
|
535
|
+
throw JSON.parse(error.response.data.message);
|
|
536
|
+
}
|
|
537
|
+
else {
|
|
538
|
+
throw [];
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
};
|
|
542
|
+
Gs2LogRestClient.prototype.sendInGameLogByUserId = function (request) {
|
|
543
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
544
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/ingame/log/user/{userId}/send')
|
|
545
|
+
.replace('{service}', 'log')
|
|
546
|
+
.replace('{region}', this.session.region)
|
|
547
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
548
|
+
.replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'));
|
|
549
|
+
var headers = this.createAuthorizedHeaders();
|
|
550
|
+
if (request.getRequestId()) {
|
|
551
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
552
|
+
}
|
|
553
|
+
if (request.getDuplicationAvoider()) {
|
|
554
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = (_e = request.getDuplicationAvoider()) !== null && _e !== void 0 ? _e : null;
|
|
555
|
+
}
|
|
556
|
+
if (request.getTimeOffsetToken()) {
|
|
557
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = (_f = request.getTimeOffsetToken()) !== null && _f !== void 0 ? _f : null;
|
|
558
|
+
}
|
|
559
|
+
var body = {
|
|
560
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
561
|
+
'tags': (_j = (_h = request.getTags()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
562
|
+
'payload': (_k = request.getPayload()) !== null && _k !== void 0 ? _k : null,
|
|
563
|
+
};
|
|
564
|
+
return axios_1.default.post(url, body, {
|
|
565
|
+
headers: headers,
|
|
566
|
+
}).then(function (response) {
|
|
567
|
+
return Result.SendInGameLogByUserIdResult.fromDict(response.data);
|
|
568
|
+
}).catch(function (error) {
|
|
569
|
+
if (error.response) {
|
|
570
|
+
throw JSON.parse(error.response.data.message);
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
throw [];
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
};
|
|
469
577
|
Gs2LogRestClient.prototype.queryAccessLogWithTelemetry = function (request) {
|
|
470
578
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
471
579
|
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/log/access/telemetry')
|