@nimee/shared-types 1.0.50 → 1.0.52
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/dist/account/account.d.ts +16 -0
- package/dist/account/account.js +10 -1
- package/dist/account/account.js.map +1 -1
- package/dist/payment/charge.d.ts +4 -1
- package/dist/payment/charge.js +2 -0
- package/dist/payment/charge.js.map +1 -1
- package/dist/userEvent/eventOrder.d.ts +3 -2
- package/package.json +1 -1
- package/src/account/account.ts +16 -0
- package/src/payment/charge.ts +3 -0
- package/src/userEvent/eventOrder.ts +3 -2
|
@@ -5,6 +5,21 @@ export declare enum IRoleTypeEnum {
|
|
|
5
5
|
admin = 4,
|
|
6
6
|
owner = 5
|
|
7
7
|
}
|
|
8
|
+
export declare enum InputDataEnumType {
|
|
9
|
+
date_no_time = "date_no_time",
|
|
10
|
+
dateAndTime = "date_and_time",
|
|
11
|
+
string = "string",
|
|
12
|
+
email = "email",
|
|
13
|
+
number = "number",
|
|
14
|
+
boolean = "boolean"
|
|
15
|
+
}
|
|
16
|
+
export interface InputDataModel {
|
|
17
|
+
placeholder: string;
|
|
18
|
+
name: string;
|
|
19
|
+
type: InputDataEnumType;
|
|
20
|
+
required: boolean;
|
|
21
|
+
isHidden: boolean;
|
|
22
|
+
}
|
|
8
23
|
export interface ICollaboratesModel {
|
|
9
24
|
user: string;
|
|
10
25
|
role: IRoleTypeEnum;
|
|
@@ -41,6 +56,7 @@ export interface IAccountModel {
|
|
|
41
56
|
isSubAccount: boolean;
|
|
42
57
|
handler: string;
|
|
43
58
|
parent: string;
|
|
59
|
+
defaultInputData: InputDataModel[];
|
|
44
60
|
}
|
|
45
61
|
export interface IPaymeCreateSellerWebhookPayload {
|
|
46
62
|
seller_payme_id: string;
|
package/dist/account/account.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IInviteeStateTypeEnum = exports.IRoleTypeEnum = void 0;
|
|
3
|
+
exports.IInviteeStateTypeEnum = exports.InputDataEnumType = exports.IRoleTypeEnum = void 0;
|
|
4
4
|
var IRoleTypeEnum;
|
|
5
5
|
(function (IRoleTypeEnum) {
|
|
6
6
|
IRoleTypeEnum[IRoleTypeEnum["scanner"] = 1] = "scanner";
|
|
@@ -9,6 +9,15 @@ var IRoleTypeEnum;
|
|
|
9
9
|
IRoleTypeEnum[IRoleTypeEnum["admin"] = 4] = "admin";
|
|
10
10
|
IRoleTypeEnum[IRoleTypeEnum["owner"] = 5] = "owner";
|
|
11
11
|
})(IRoleTypeEnum = exports.IRoleTypeEnum || (exports.IRoleTypeEnum = {}));
|
|
12
|
+
var InputDataEnumType;
|
|
13
|
+
(function (InputDataEnumType) {
|
|
14
|
+
InputDataEnumType["date_no_time"] = "date_no_time";
|
|
15
|
+
InputDataEnumType["dateAndTime"] = "date_and_time";
|
|
16
|
+
InputDataEnumType["string"] = "string";
|
|
17
|
+
InputDataEnumType["email"] = "email";
|
|
18
|
+
InputDataEnumType["number"] = "number";
|
|
19
|
+
InputDataEnumType["boolean"] = "boolean";
|
|
20
|
+
})(InputDataEnumType = exports.InputDataEnumType || (exports.InputDataEnumType = {}));
|
|
12
21
|
var IInviteeStateTypeEnum;
|
|
13
22
|
(function (IInviteeStateTypeEnum) {
|
|
14
23
|
IInviteeStateTypeEnum["SENT"] = "sent";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,uDAAW,CAAA;IACX,qDAAU,CAAA;IACV,qDAAU,CAAA;IACV,mDAAS,CAAA;IACT,mDAAS,CAAA;AACX,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,uDAAW,CAAA;IACX,qDAAU,CAAA;IACV,qDAAU,CAAA;IACV,mDAAS,CAAA;IACT,mDAAS,CAAA;AACX,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AACD,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,kDAA6B,CAAA;IAC7B,kDAA6B,CAAA;IAC7B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;AACrB,CAAC,EAPW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAO5B;AAYD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
|
package/dist/payment/charge.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export declare enum IStatusPaymentEnum {
|
|
|
7
7
|
paid = "paid",
|
|
8
8
|
failed = "failed",
|
|
9
9
|
expired = "expired",
|
|
10
|
-
pending_refund = "pending_refund"
|
|
10
|
+
pending_refund = "pending_refund",
|
|
11
|
+
partial_refund = "partial_refund",
|
|
12
|
+
unknown = "unknown"
|
|
11
13
|
}
|
|
12
14
|
export interface IChargeModel {
|
|
13
15
|
error: object;
|
|
@@ -44,4 +46,5 @@ export interface IChargeModel {
|
|
|
44
46
|
external_transaction_auth_number?: string;
|
|
45
47
|
external_signature?: string;
|
|
46
48
|
status: string;
|
|
49
|
+
amount_left_after_all_refunds?: string;
|
|
47
50
|
}
|
package/dist/payment/charge.js
CHANGED
|
@@ -12,5 +12,7 @@ var IStatusPaymentEnum;
|
|
|
12
12
|
IStatusPaymentEnum["failed"] = "failed";
|
|
13
13
|
IStatusPaymentEnum["expired"] = "expired";
|
|
14
14
|
IStatusPaymentEnum["pending_refund"] = "pending_refund";
|
|
15
|
+
IStatusPaymentEnum["partial_refund"] = "partial_refund";
|
|
16
|
+
IStatusPaymentEnum["unknown"] = "unknown";
|
|
15
17
|
})(IStatusPaymentEnum = exports.IStatusPaymentEnum || (exports.IStatusPaymentEnum = {}));
|
|
16
18
|
//# sourceMappingURL=charge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"charge.js","sourceRoot":"","sources":["../../src/payment/charge.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;AACrB,CAAC,EAZW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAY7B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IStatusPaymentEnum } from "../payment";
|
|
2
1
|
import { IUserEventModel } from "./userEvent";
|
|
3
2
|
export interface IEventOrderModel {
|
|
4
3
|
event: string;
|
|
@@ -9,7 +8,9 @@ export interface IEventOrderModel {
|
|
|
9
8
|
token: string;
|
|
10
9
|
purchaseToken: string;
|
|
11
10
|
userEvents: Array<IUserEventModel>;
|
|
12
|
-
status:
|
|
11
|
+
status: string;
|
|
13
12
|
orderNumber: string;
|
|
14
13
|
coupon?: string;
|
|
14
|
+
externalSaleId: string;
|
|
15
|
+
externalAuthorizationNumber: string;
|
|
15
16
|
}
|
package/package.json
CHANGED
package/src/account/account.ts
CHANGED
|
@@ -5,6 +5,21 @@ export enum IRoleTypeEnum {
|
|
|
5
5
|
admin = 4,
|
|
6
6
|
owner = 5,
|
|
7
7
|
}
|
|
8
|
+
export enum InputDataEnumType {
|
|
9
|
+
date_no_time = "date_no_time",
|
|
10
|
+
dateAndTime = "date_and_time",
|
|
11
|
+
string = "string",
|
|
12
|
+
email = "email",
|
|
13
|
+
number = "number",
|
|
14
|
+
boolean = "boolean",
|
|
15
|
+
}
|
|
16
|
+
export interface InputDataModel {
|
|
17
|
+
placeholder: string;
|
|
18
|
+
name: string;
|
|
19
|
+
type: InputDataEnumType;
|
|
20
|
+
required: boolean;
|
|
21
|
+
isHidden: boolean;
|
|
22
|
+
}
|
|
8
23
|
export interface ICollaboratesModel {
|
|
9
24
|
user: string;
|
|
10
25
|
role: IRoleTypeEnum;
|
|
@@ -35,6 +50,7 @@ export interface IAccountModel {
|
|
|
35
50
|
isSubAccount: boolean;
|
|
36
51
|
handler: string;
|
|
37
52
|
parent: string;
|
|
53
|
+
defaultInputData: InputDataModel[];
|
|
38
54
|
}
|
|
39
55
|
// {"payme_status":"success","status_error_code":0,"status_code":0,"seller_payme_id":"MPL16720-72349IAE-FRITPXY5-TFLDUEWF","seller_created":"2022-12-26 18:32:29","seller_first_name":"Ron","seller_last_name":"Dahan","seller_social_id":"205569163","seller_birthdate":"1994-07-01","seller_date_of_birth":"1994-07-01","seller_gender":0,"seller_email":"roncho1794@gmail.com","seller_contact_email":"roncho1794@gmail.com","seller_phone":"+972542323517","seller_contact_phone":"+972542323517","seller_address_city":"Tel Aviv","seller_address_street":"Tel Aviv","seller_address_street_number":"12","seller_address_country":"IL","seller_inc":0,"seller_inc_code":"12345","seller_merchant_name":"Ronen","seller_site_url":"www.no.co.il","seller_custom_details":"No existing Isracard MID","seller_active":true,"seller_approved":false,"seller_market_fee":0,"seller_currencies":,"fee_default_processing_fee":"1.50","fee_default_processing_charge":"0.100000000000000000","fee_default_discount_fee":"0.50","fee_foreign_processing_fee":"2.95","fee_foreign_processing_charge":"0.100000000000000000","fee_forcurr_processing_charge":"0.100000000000000000","seller_public_key":{"uuid":"b40a5251-9907-4db1-8f26-c015dd9466df","description":"PayMe-Public-Key","is_active":true},"notify_type":"seller-create"}
|
|
40
56
|
|
package/src/payment/charge.ts
CHANGED
|
@@ -8,6 +8,8 @@ export enum IStatusPaymentEnum {
|
|
|
8
8
|
failed = "failed",
|
|
9
9
|
expired = "expired",
|
|
10
10
|
pending_refund = "pending_refund",
|
|
11
|
+
partial_refund = "partial_refund",
|
|
12
|
+
unknown = "unknown",
|
|
11
13
|
}
|
|
12
14
|
export interface IChargeModel {
|
|
13
15
|
error: object;
|
|
@@ -50,4 +52,5 @@ export interface IChargeModel {
|
|
|
50
52
|
external_transaction_auth_number?: string;
|
|
51
53
|
external_signature?: string;
|
|
52
54
|
status: string;
|
|
55
|
+
amount_left_after_all_refunds?: string;
|
|
53
56
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IStatusPaymentEnum } from "../payment";
|
|
2
1
|
import { IUserEventModel } from "./userEvent";
|
|
3
2
|
export interface IEventOrderModel {
|
|
4
3
|
event: string;
|
|
@@ -9,7 +8,9 @@ export interface IEventOrderModel {
|
|
|
9
8
|
token: string;
|
|
10
9
|
purchaseToken: string;
|
|
11
10
|
userEvents: Array<IUserEventModel>;
|
|
12
|
-
status:
|
|
11
|
+
status: string;
|
|
13
12
|
orderNumber: string;
|
|
14
13
|
coupon?: string;
|
|
14
|
+
externalSaleId: string;
|
|
15
|
+
externalAuthorizationNumber: string;
|
|
15
16
|
}
|