@etsoo/appscript 1.3.75 → 1.3.77
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.
|
@@ -87,11 +87,11 @@ export declare class PublicApi extends BaseApi {
|
|
|
87
87
|
mobileQRCode(id?: string, host?: string, payload?: IApiPayload<string>): Promise<string | undefined>;
|
|
88
88
|
/**
|
|
89
89
|
* Parse Pin data
|
|
90
|
-
* @param
|
|
90
|
+
* @param input Request data
|
|
91
91
|
* @param payload Payload
|
|
92
92
|
* @returns Result
|
|
93
93
|
*/
|
|
94
|
-
parsePin(
|
|
94
|
+
parsePin(input: ParsePinRQ | string, payload?: IApiPayload<PinDto>): Promise<PinDto | undefined>;
|
|
95
95
|
/**
|
|
96
96
|
* Get public and valid product data
|
|
97
97
|
* @param id Product/Service Id or Uid
|
package/lib/cjs/erp/PublicApi.js
CHANGED
|
@@ -164,12 +164,13 @@ class PublicApi extends BaseApi_1.BaseApi {
|
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* Parse Pin data
|
|
167
|
-
* @param
|
|
167
|
+
* @param input Request data
|
|
168
168
|
* @param payload Payload
|
|
169
169
|
* @returns Result
|
|
170
170
|
*/
|
|
171
|
-
parsePin(
|
|
171
|
+
parsePin(input, payload) {
|
|
172
172
|
var _a;
|
|
173
|
+
const rq = typeof input === 'string' ? { pin: input } : input;
|
|
173
174
|
(_a = rq.language) !== null && _a !== void 0 ? _a : (rq.language = this.app.culture);
|
|
174
175
|
return this.api.post('Public/ParsePin', rq, payload);
|
|
175
176
|
}
|
|
@@ -87,11 +87,11 @@ export declare class PublicApi extends BaseApi {
|
|
|
87
87
|
mobileQRCode(id?: string, host?: string, payload?: IApiPayload<string>): Promise<string | undefined>;
|
|
88
88
|
/**
|
|
89
89
|
* Parse Pin data
|
|
90
|
-
* @param
|
|
90
|
+
* @param input Request data
|
|
91
91
|
* @param payload Payload
|
|
92
92
|
* @returns Result
|
|
93
93
|
*/
|
|
94
|
-
parsePin(
|
|
94
|
+
parsePin(input: ParsePinRQ | string, payload?: IApiPayload<PinDto>): Promise<PinDto | undefined>;
|
|
95
95
|
/**
|
|
96
96
|
* Get public and valid product data
|
|
97
97
|
* @param id Product/Service Id or Uid
|
package/lib/mjs/erp/PublicApi.js
CHANGED
|
@@ -161,12 +161,13 @@ export class PublicApi extends BaseApi {
|
|
|
161
161
|
}
|
|
162
162
|
/**
|
|
163
163
|
* Parse Pin data
|
|
164
|
-
* @param
|
|
164
|
+
* @param input Request data
|
|
165
165
|
* @param payload Payload
|
|
166
166
|
* @returns Result
|
|
167
167
|
*/
|
|
168
|
-
parsePin(
|
|
168
|
+
parsePin(input, payload) {
|
|
169
169
|
var _a;
|
|
170
|
+
const rq = typeof input === 'string' ? { pin: input } : input;
|
|
170
171
|
(_a = rq.language) !== null && _a !== void 0 ? _a : (rq.language = this.app.culture);
|
|
171
172
|
return this.api.post('Public/ParsePin', rq, payload);
|
|
172
173
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.77",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@etsoo/notificationbase": "^1.1.24",
|
|
56
56
|
"@etsoo/restclient": "^1.0.87",
|
|
57
|
-
"@etsoo/shared": "^1.1.
|
|
57
|
+
"@etsoo/shared": "^1.1.92",
|
|
58
58
|
"@types/crypto-js": "^4.1.1",
|
|
59
59
|
"crypto-js": "^4.1.1"
|
|
60
60
|
},
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@babel/plugin-transform-runtime": "^7.21.0",
|
|
65
65
|
"@babel/preset-env": "^7.20.2",
|
|
66
66
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
67
|
-
"@types/jest": "^29.
|
|
67
|
+
"@types/jest": "^29.5.0",
|
|
68
68
|
"jest": "^29.5.0",
|
|
69
69
|
"jest-environment-jsdom": "^29.5.0",
|
|
70
70
|
"ts-jest": "^29.0.5",
|
package/src/erp/PublicApi.ts
CHANGED
|
@@ -205,11 +205,12 @@ export class PublicApi extends BaseApi {
|
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* Parse Pin data
|
|
208
|
-
* @param
|
|
208
|
+
* @param input Request data
|
|
209
209
|
* @param payload Payload
|
|
210
210
|
* @returns Result
|
|
211
211
|
*/
|
|
212
|
-
parsePin(
|
|
212
|
+
parsePin(input: ParsePinRQ | string, payload?: IApiPayload<PinDto>) {
|
|
213
|
+
const rq = typeof input === 'string' ? { pin: input } : input;
|
|
213
214
|
rq.language ??= this.app.culture;
|
|
214
215
|
return this.api.post('Public/ParsePin', rq, payload);
|
|
215
216
|
}
|