repzo 1.0.17 → 1.0.20

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.
@@ -3458,6 +3458,7 @@ export declare namespace Service {
3458
3458
  creator?: string[] | string;
3459
3459
  clients?: string[] | string;
3460
3460
  withPrintDetails?: boolean;
3461
+ "serial_number.formatted"?: string[] | string;
3461
3462
  [key: string]: any;
3462
3463
  populatedKeys?: PopulatedKeys[];
3463
3464
  };
@@ -3488,6 +3489,136 @@ export declare namespace Service {
3488
3489
  }
3489
3490
  export {};
3490
3491
  }
3492
+ namespace Refund {
3493
+ export interface RefundSchema {
3494
+ _id: string;
3495
+ status: RefundStatus;
3496
+ remainder: number;
3497
+ amount: number;
3498
+ client_id: string;
3499
+ client_name: string;
3500
+ creator: AdminCreator | RepCreator;
3501
+ time?: number;
3502
+ serial_number: SerialNumber;
3503
+ route?: string;
3504
+ paytime: string;
3505
+ note?: string;
3506
+ currency: string;
3507
+ transaction_type: RefundType;
3508
+ check?: Check;
3509
+ LinkedTxn?: {
3510
+ Txn_serial_number: SerialNumber;
3511
+ Txn_invoice_total: number;
3512
+ TxnType: "return_invoice" | "payment" | "invoice";
3513
+ };
3514
+ company_namespace: string[];
3515
+ integration_meta?: {
3516
+ [key: string]: any;
3517
+ };
3518
+ sync_id: string;
3519
+ custom_status?: string;
3520
+ visit_id?: string;
3521
+ teams?: string[];
3522
+ paymentsData: {
3523
+ amount: number;
3524
+ paid: number;
3525
+ balance: number;
3526
+ payments: PaymentData[];
3527
+ };
3528
+ createdAt: string;
3529
+ updatedAt: string;
3530
+ __v: number;
3531
+ }
3532
+ interface CreateBody {
3533
+ amount: number;
3534
+ client_id: string;
3535
+ client_name: string;
3536
+ time?: number;
3537
+ serial_number?: SerialNumber;
3538
+ route?: string;
3539
+ paytime: string;
3540
+ note?: string;
3541
+ currency: string;
3542
+ transaction_type: RefundType;
3543
+ check?: Check;
3544
+ LinkedTxn?: {
3545
+ Txn_serial_number: SerialNumber;
3546
+ Txn_invoice_total: number;
3547
+ TxnType: "return_invoice" | "payment" | "invoice";
3548
+ };
3549
+ company_namespace?: string[];
3550
+ integration_meta?: {
3551
+ [key: string]: any;
3552
+ };
3553
+ sync_id: string;
3554
+ custom_status?: string;
3555
+ visit_id?: string;
3556
+ teams?: string[];
3557
+ }
3558
+ interface UpdateBody {
3559
+ integration_meta?: {
3560
+ [key: string]: any;
3561
+ };
3562
+ }
3563
+ type RefundSchemaWithPopulatedKeys = RefundSchema & {
3564
+ balance_to_refund: number;
3565
+ custom_status?: string | CustomStatus.CustomStatusSchema;
3566
+ check?: Check & {
3567
+ bank: Bank.BankSchema;
3568
+ };
3569
+ invoice?: {
3570
+ invoice_serial_number: string;
3571
+ invoice_date: string;
3572
+ invoice_due_date: string;
3573
+ original_amount: number;
3574
+ refund: number;
3575
+ };
3576
+ };
3577
+ type RefundType = "check" | "cash";
3578
+ type PopulatedKeys = "custom_status";
3579
+ type RefundStatus = "consumed" | "unconsumed" | "partially_consumed";
3580
+ export namespace Find {
3581
+ type Params = DefaultPaginationQueryParams & {
3582
+ _id?: string[] | string;
3583
+ "creator._id"?: string[] | string;
3584
+ client_id?: string[] | string;
3585
+ from_paytime?: number;
3586
+ to_paytime?: number;
3587
+ custom_status?: string[] | string;
3588
+ transaction_type?: RefundType | RefundType[];
3589
+ creator?: string[] | string;
3590
+ clients?: string[] | string;
3591
+ withPrintDetails?: boolean;
3592
+ [key: string]: any;
3593
+ populatedKeys?: PopulatedKeys[];
3594
+ };
3595
+ interface Result extends DefaultPaginationResult {
3596
+ data: RefundSchemaWithPopulatedKeys[];
3597
+ absolute_total: number;
3598
+ page_total: number;
3599
+ }
3600
+ }
3601
+ export namespace Get {
3602
+ type ID = string;
3603
+ interface Params {
3604
+ withPrintDetails?: boolean;
3605
+ populatedKeys?: PopulatedKeys[];
3606
+ }
3607
+ type Result = RefundSchemaWithPopulatedKeys & {
3608
+ custom_status: CustomStatus.CustomStatusSchema;
3609
+ };
3610
+ }
3611
+ export namespace Create {
3612
+ type Body = CreateBody;
3613
+ type Result = RefundSchema;
3614
+ }
3615
+ export namespace Update {
3616
+ type ID = string;
3617
+ type Body = UpdateBody;
3618
+ type Result = RefundSchema;
3619
+ }
3620
+ export {};
3621
+ }
3491
3622
  namespace Cycle {
3492
3623
  type CycleStatus = "pending" | "approved" | "processing" | "rejected";
3493
3624
  export interface Schema {
@@ -3873,9 +4004,13 @@ export declare namespace Service {
3873
4004
  sync_id: string;
3874
4005
  action: string;
3875
4006
  status: Status;
3876
- error?: {
3877
- [key: string]: any;
3878
- };
4007
+ error?:
4008
+ | {
4009
+ [key: string]: any;
4010
+ }
4011
+ | {
4012
+ [key: string]: any;
4013
+ }[];
3879
4014
  start_time: number;
3880
4015
  end_time?: number;
3881
4016
  total_time?: number;
@@ -3899,9 +4034,13 @@ export declare namespace Service {
3899
4034
  sync_id?: string;
3900
4035
  action: string;
3901
4036
  status: Status;
3902
- error?: {
3903
- [key: string]: any;
3904
- };
4037
+ error?:
4038
+ | {
4039
+ [key: string]: any;
4040
+ }
4041
+ | {
4042
+ [key: string]: any;
4043
+ }[];
3905
4044
  start_time: number;
3906
4045
  end_time?: number;
3907
4046
  total_time?: number;
@@ -3988,9 +4127,13 @@ export declare namespace Service {
3988
4127
  available_app_id: string;
3989
4128
  app_id: string;
3990
4129
  status: Status;
3991
- error?: {
3992
- [key: string]: any;
3993
- };
4130
+ error?:
4131
+ | {
4132
+ [key: string]: any;
4133
+ }
4134
+ | {
4135
+ [key: string]: any;
4136
+ }[];
3994
4137
  start_time: number;
3995
4138
  end_time?: number;
3996
4139
  total_time?: number;
@@ -4023,9 +4166,13 @@ export declare namespace Service {
4023
4166
  available_app_id: string;
4024
4167
  app_id: string;
4025
4168
  status: Status;
4026
- error?: {
4027
- [key: string]: any;
4028
- };
4169
+ error?:
4170
+ | {
4171
+ [key: string]: any;
4172
+ }
4173
+ | {
4174
+ [key: string]: any;
4175
+ }[];
4029
4176
  start_time: number;
4030
4177
  end_time?: number;
4031
4178
  total_time?: number;
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/package.json CHANGED
@@ -1,36 +1,36 @@
1
- {
2
- "name": "repzo",
3
- "version": "1.0.17",
4
- "description": "Repzo TypeScript SDK",
5
- "main": "./lib/index.js",
6
- "type": "module",
7
- "scripts": {
8
- "test": "npm run test",
9
- "lint": "npx prettier --write .",
10
- "build": "tsc"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/Repzo/repzo-ts.git"
15
- },
16
- "keywords": [
17
- "repzo"
18
- ],
19
- "author": "mohammad khamis <Mohammad.khamis@repzoapp.com>",
20
- "license": "ISC",
21
- "bugs": {
22
- "url": "https://github.com/Repzo/repzo-ts/issues"
23
- },
24
- "homepage": "https://github.com/Repzo/repzo-ts#readme",
25
- "dependencies": {
26
- "@babel/parser": "^7.14.7",
27
- "uuid": "^8.3.2"
28
- },
29
- "devDependencies": {
30
- "@types/uuid": "^8.3.4",
31
- "axios": "^0.26.1",
32
- "prettier": "2.1.2",
33
- "typescript": "^4.3.4"
34
- },
35
- "build": "tsc"
36
- }
1
+ {
2
+ "name": "repzo",
3
+ "version": "1.0.20",
4
+ "description": "Repzo TypeScript SDK",
5
+ "main": "./lib/index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "npm run test",
9
+ "lint": "npx prettier --write .",
10
+ "build": "tsc"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/Repzo/repzo-ts.git"
15
+ },
16
+ "keywords": [
17
+ "repzo"
18
+ ],
19
+ "author": "mohammad khamis <Mohammad.khamis@repzoapp.com>",
20
+ "license": "ISC",
21
+ "bugs": {
22
+ "url": "https://github.com/Repzo/repzo-ts/issues"
23
+ },
24
+ "homepage": "https://github.com/Repzo/repzo-ts#readme",
25
+ "dependencies": {
26
+ "@babel/parser": "^7.14.7",
27
+ "uuid": "^8.3.2"
28
+ },
29
+ "devDependencies": {
30
+ "@types/uuid": "^8.3.4",
31
+ "axios": "^0.26.1",
32
+ "prettier": "2.1.2",
33
+ "typescript": "^4.3.4"
34
+ },
35
+ "build": "tsc"
36
+ }