x25 17.6.2 → 17.6.3
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/Payment/core/codes.d.ts
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/** Payment types for all sidework ecosystem */
|
|
2
|
+
export declare enum SIDEWORK_APPLICATION {
|
|
3
|
+
/**
|
|
4
|
+
* ApplicationCodeSMSAlert
|
|
5
|
+
* Example: smsalert-1000-3
|
|
6
|
+
* - credits: number of credits (e.g., 1000)
|
|
7
|
+
* - companyID: ID of the company (e.g., 3)
|
|
8
|
+
*/
|
|
9
|
+
SMS_ALERT = "smsalert",
|
|
10
|
+
/**
|
|
11
|
+
* ApplicationCodeInvoiceService
|
|
12
|
+
* Example: facturare-2-76
|
|
13
|
+
* - months: number of months (e.g., 2)
|
|
14
|
+
* - companyID: ID of the company (e.g., 76)
|
|
15
|
+
*/
|
|
16
|
+
INVOICES_SUBSCRIPTION = "facturare",
|
|
17
|
+
/**
|
|
18
|
+
* ApplicationCodeAutoService
|
|
19
|
+
* Example: auto-2-76
|
|
20
|
+
* - months: number of months (e.g., 2)
|
|
21
|
+
* - companyID: ID of the company (e.g., 76)
|
|
22
|
+
*/
|
|
23
|
+
SIDENOTE_SUBSCRIPTION = "auto"
|
|
24
|
+
}
|
|
25
|
+
export default SIDEWORK_APPLICATION;
|
package/Payment/core/codes.js
CHANGED
|
@@ -1,48 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* eslint-disable no-shadow */
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// // ApplicationCodeAutoService ---
|
|
32
|
-
// ApplicationCodeAutoService = "auto"
|
|
33
|
-
// // DescriptionInvoiceService ---
|
|
34
|
-
// // example facturare-2-76
|
|
35
|
-
// // the nr. of months is 2
|
|
36
|
-
// // the company id is 76
|
|
37
|
-
// DescriptionAutoService = `
|
|
38
|
-
// <b>auto</b><br>
|
|
39
|
-
// arg1: <b>months</b><br>
|
|
40
|
-
// arg2: <b>companyID</b><br><br>
|
|
41
|
-
*/
|
|
42
|
-
SIDEWORK_APP_SIDENOTE_SUBSCRIPTION = "auto";
|
|
43
|
-
exports.default = {
|
|
44
|
-
SIDEWORK_APP_INVOICES_SUBSCRIPTION,
|
|
45
|
-
SIDEWORK_APP_SIDENOTE_SMS,
|
|
46
|
-
SIDEWORK_APP_SIDENOTE_SUBSCRIPTION,
|
|
47
|
-
};
|
|
4
|
+
exports.SIDEWORK_APPLICATION = void 0;
|
|
5
|
+
/** Payment types for all sidework ecosystem */
|
|
6
|
+
var SIDEWORK_APPLICATION;
|
|
7
|
+
(function (SIDEWORK_APPLICATION) {
|
|
8
|
+
/**
|
|
9
|
+
* ApplicationCodeSMSAlert
|
|
10
|
+
* Example: smsalert-1000-3
|
|
11
|
+
* - credits: number of credits (e.g., 1000)
|
|
12
|
+
* - companyID: ID of the company (e.g., 3)
|
|
13
|
+
*/
|
|
14
|
+
SIDEWORK_APPLICATION["SMS_ALERT"] = "smsalert";
|
|
15
|
+
/**
|
|
16
|
+
* ApplicationCodeInvoiceService
|
|
17
|
+
* Example: facturare-2-76
|
|
18
|
+
* - months: number of months (e.g., 2)
|
|
19
|
+
* - companyID: ID of the company (e.g., 76)
|
|
20
|
+
*/
|
|
21
|
+
SIDEWORK_APPLICATION["INVOICES_SUBSCRIPTION"] = "facturare";
|
|
22
|
+
/**
|
|
23
|
+
* ApplicationCodeAutoService
|
|
24
|
+
* Example: auto-2-76
|
|
25
|
+
* - months: number of months (e.g., 2)
|
|
26
|
+
* - companyID: ID of the company (e.g., 76)
|
|
27
|
+
*/
|
|
28
|
+
SIDEWORK_APPLICATION["SIDENOTE_SUBSCRIPTION"] = "auto";
|
|
29
|
+
})(SIDEWORK_APPLICATION || (exports.SIDEWORK_APPLICATION = SIDEWORK_APPLICATION = {}));
|
|
30
|
+
// Usage example
|
|
31
|
+
exports.default = SIDEWORK_APPLICATION;
|
|
48
32
|
//# sourceMappingURL=codes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../../../src/Payment/core/codes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codes.js","sourceRoot":"","sources":["../../../src/Payment/core/codes.ts"],"names":[],"mappings":";AAAA,8BAA8B;;;AAE9B,gDAAgD;AAChD,IAAY,oBAwBX;AAxBD,WAAY,oBAAoB;IAC9B;;;;;OAKG;IACH,8CAAsB,CAAA;IAEtB;;;;;OAKG;IACH,2DAAmC,CAAA;IAEnC;;;;;OAKG;IACH,sDAA8B,CAAA;AAChC,CAAC,EAxBW,oBAAoB,oCAApB,oBAAoB,QAwB/B;AAED,gBAAgB;AAChB,kBAAe,oBAAoB,CAAC"}
|
|
@@ -9,13 +9,13 @@ const getDetails = (application, data) => {
|
|
|
9
9
|
const getParams = () => {
|
|
10
10
|
const { Credits, Months, companyID } = data;
|
|
11
11
|
switch (application) {
|
|
12
|
-
case codes_1.default.
|
|
12
|
+
case codes_1.default.SMS_ALERT:
|
|
13
13
|
return [
|
|
14
14
|
Credits,
|
|
15
15
|
companyID,
|
|
16
16
|
];
|
|
17
|
-
case codes_1.default.
|
|
18
|
-
case codes_1.default.
|
|
17
|
+
case codes_1.default.SIDENOTE_SUBSCRIPTION:
|
|
18
|
+
case codes_1.default.INVOICES_SUBSCRIPTION:
|
|
19
19
|
return [
|
|
20
20
|
Months,
|
|
21
21
|
companyID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/Payment/core/util/util.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/Payment/core/util/util.ts"],"names":[],"mappings":";;;;;;AAOA,qDAAuD;AAEvD,MAAM,UAAU,GAAG,CAAC,WAAkC,EAAE,IAAe,EAAE,EAAE;IAEzE,MAAM,SAAS,GAAG,GAAG,EAAE;QACrB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAE5C,QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,eAAK,CAAC,SAAS;gBAElB,OAAO;oBACL,OAAO;oBACP,SAAS;iBACV,CAAC;YAEJ,KAAK,eAAK,CAAC,qBAAqB,CAAC;YACjC,KAAK,eAAK,CAAC,qBAAqB;gBAC9B,OAAO;oBACL,MAAM;oBACN,SAAS;iBACV,CAAC;YAEJ;gBACE,OAAO,EAAE,CAAC;QACd,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,GAAG,WAAW,IAAI,SAAS,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AACnD,CAAC,CAAC;AAGA,gCAAU"}
|
package/Payment/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { default as PAYMENT_APP_CODES } from "./core/codes";
|
|
2
3
|
declare const paymentUtils: {
|
|
3
|
-
PAYMENT_APP_CODES:
|
|
4
|
-
SIDEWORK_APP_INVOICES_SUBSCRIPTION: string;
|
|
5
|
-
SIDEWORK_APP_SIDENOTE_SMS: string;
|
|
6
|
-
SIDEWORK_APP_SIDENOTE_SUBSCRIPTION: string;
|
|
7
|
-
};
|
|
4
|
+
PAYMENT_APP_CODES: typeof PAYMENT_APP_CODES;
|
|
8
5
|
paymentModal: {
|
|
9
6
|
PAYMENT_BANK_TRANSFER: (props: {
|
|
10
|
-
readonly application:
|
|
7
|
+
readonly application: PAYMENT_APP_CODES;
|
|
11
8
|
readonly options: any;
|
|
12
9
|
readonly info: any;
|
|
13
10
|
}) => import("react").JSX.Element;
|
package/package.json
CHANGED