@jealous-robot-dev/shared-types-responses 1.30.19 → 1.30.22

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.
@@ -1,4 +1,10 @@
1
1
  import { LND } from '../common';
2
+ export declare enum PaymentType {
3
+ REFUND = "REFUND",
4
+ PAYOUT = "PAYOUT",
5
+ PAYOFF = "PAYOFF",
6
+ PAYMENT = "PAYMENT"
7
+ }
2
8
  export interface SendPDFForm {
3
9
  title: string;
4
10
  description: string;
@@ -35,22 +41,16 @@ export interface PaymentHistoryPhrases {
35
41
  total_transactions: string;
36
42
  }
37
43
  export interface PaymentHistoryTransaction {
38
- transaction_id: string;
39
- transaction_receiver: {
40
- UID: string;
41
- firstname: string;
42
- lastname: string;
43
- };
44
- transaction_sender: {
45
- UID: string;
46
- firstname: string;
47
- lastname: string;
48
- };
49
- transaction_amount: number;
50
- transaction_reason: string;
51
- transaction_made_at: string;
44
+ id: string;
45
+ amount: number;
46
+ made_at: string;
47
+ currency: string;
48
+ reason: PaymentType;
52
49
  }
53
50
  export interface PaymentHistoryData {
54
- total_transactions: number;
55
51
  transactions: PaymentHistoryTransaction[];
52
+ has_more: boolean;
53
+ }
54
+ export interface PaymentHistoryInitialResponse extends PaymentHistoryData {
55
+ total_transactions: number;
56
56
  }
@@ -1,2 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentType = void 0;
4
+ var PaymentType;
5
+ (function (PaymentType) {
6
+ PaymentType["REFUND"] = "REFUND";
7
+ PaymentType["PAYOUT"] = "PAYOUT";
8
+ PaymentType["PAYOFF"] = "PAYOFF";
9
+ PaymentType["PAYMENT"] = "PAYMENT";
10
+ })(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
@@ -4,25 +4,27 @@ export declare enum NotificationCategory {
4
4
  HOST = "HOST"
5
5
  }
6
6
  export declare enum NotificationTypes {
7
- SUCCESSFULL_RESCHEDULING = "SUCCESSFULL_RESCHEDULING",
8
- SEANCE_CANCELLED_BY_HOST = "SEANCE_CANCELLED_BY_HOST",
7
+ SEANCE_RESCHEDULED = "SEANCE_RESCHEDULED",
8
+ SEANCE_REMOVED_BY_HOST = "SEANCE_REMOVED_BY_HOST",
9
9
  NEW_SERVICE_REGISTRED = "NEW_SERVICE_REGISTRED",
10
10
  SERVICE_DELETION = "SERVICE_DELETION",
11
- ENABLE_PAYOUTS = "ENABLE_PAYOUTS",
12
11
  NEW_CUSTOMER = "NEW_CUSTOMER",
13
12
  MISSED_HOSTING = "MISSED_HOSTING",
14
13
  REVIEW_RECEIVED = "REVIEW_RECEIVED",
14
+ GOLD_BADGE_LOST = "GOLD_BADGE_LOST",
15
15
  REMOVED_CUSTOMER = "REMOVED_CUSTOMER",
16
+ GOLD_BADGE_EARNED = "GOLD_BADGE_EARNED",
16
17
  BOOKING_CANCELLATION = "BOOKING_CANCELLATION",
17
18
  REFUNDED_CANCELLATION = "REFUNDED_CANCELLATION",
18
19
  PERSONAL_REFUND_OFFERED = "PERSONAL_REFUND_OFFERED",
19
- CANCELLED_BY_CUSTOMER = "CANCELLED_BY_CUSTOMER",
20
+ BOOKING_CANCELLED_BY_CUSTOMER = "CANCELLED_BY_CUSTOMER",
21
+ BOOKING_CANCELLED_BY_HOST = "CANCELLED_BY_HOST",
20
22
  SUCCESSFULL_BOOKING = "SUCCESSFULL_BOOKING",
21
23
  UPDATES_FROM_HOST = "UPDATES_FROM_HOST",
22
- CANCELLED_BY_HOST = "CANCELLED_BY_HOST",
23
24
  WELCOME_MEMBER = "WELCOME_MEMBER",
24
25
  CUSTOMER_SEANCE_REMINDER = "PRESCHEDULED_CUSTOMER_SEANCE_REMINDER",
25
26
  HOST_SEANCE_REMINDER = "PRESCHEDULED_HOST_SEANCE_REMINDER",
27
+ ENABLE_PAYOUTS = "ENABLE_PAYOUTS",
26
28
  WELCOME_TO_COMMUNITY = "WELCOME_TO_COMMUNITY",
27
29
  CUSTOMER_HESISTANCY = "CUSTOMER_HESISTANCY",
28
30
  TAKEN_TIME_CHOSEN = "TAKEN_TIME_CHOSEN",
@@ -30,20 +32,25 @@ export declare enum NotificationTypes {
30
32
  OFFER_PERSONAL_REFUND = "OFFER_PERSONAL_REFUND",
31
33
  NEW_DEVICE = "NEW_DEVICE",
32
34
  PAYOUT_SENT = "PAYOUT_SENT",
35
+ PAYOUT_MADE = "PAYOUT_MADE",
36
+ PAYOFF_SENT = "PAYOFF_SENT",
37
+ PAYOFF_MADE = "PAYOFF_MADE",
38
+ PAYOUT_LATER = "PAYOUT_LATER",
33
39
  REFUND_FAILED = "REFUND_FAILED",
34
40
  PAYOUT_FAILED = "PAYOUT_FAILED",
35
- PAYOUT_SUCCEED = "PAYOUT_SUCCEED",
36
- GOLD_BADGE_LOST = "GOLD_BADGE_LOST",
37
- GOLD_BADGE_EARNED = "GOLD_BADGE_EARNED",
38
- TRANSFERS_INACTIVE = "TRANSFERS_INACTIVE",
41
+ PAYOFF_FAILED = "PAYOFF_FAILED",
42
+ PAYOFF_TRANSFER_FAILED = "PAYOFF_TRANSFER_FAILED",
43
+ PAYOUT_TRANSFER_FAILED = "PAYOUT_TRANSFER_FAILED",
39
44
  STRIPE_CONNECTION_SUCCESS = "STRIPE_CONNECTION_SUCCESS",
40
45
  STRIPE_CONNECTION_FAILURE = "STRIPE_CONNECTION_FAILURE"
41
46
  }
42
47
  export declare const CUSTOMER_NOTIFS: NotificationTypes[];
43
48
  export declare const HOST_NOTIFS: NotificationTypes[];
44
49
  export declare enum NotificationIcons {
50
+ DISCONNECTION = "DISCONNECTION",
45
51
  CANCELLATION = "CANCELLATION",
46
52
  MINUS_USER = "MINUS_USER",
53
+ CONNECTION = "CONNECTION",
47
54
  CALENDAR = "CALENDAR",
48
55
  CONGRATS = "CONGRATS",
49
56
  SECURITY = "SECURITY",
@@ -9,28 +9,30 @@ var NotificationCategory;
9
9
  var NotificationTypes;
10
10
  (function (NotificationTypes) {
11
11
  //host management
12
- NotificationTypes["SUCCESSFULL_RESCHEDULING"] = "SUCCESSFULL_RESCHEDULING";
13
- NotificationTypes["SEANCE_CANCELLED_BY_HOST"] = "SEANCE_CANCELLED_BY_HOST";
12
+ NotificationTypes["SEANCE_RESCHEDULED"] = "SEANCE_RESCHEDULED";
13
+ NotificationTypes["SEANCE_REMOVED_BY_HOST"] = "SEANCE_REMOVED_BY_HOST";
14
14
  NotificationTypes["NEW_SERVICE_REGISTRED"] = "NEW_SERVICE_REGISTRED";
15
15
  NotificationTypes["SERVICE_DELETION"] = "SERVICE_DELETION";
16
- NotificationTypes["ENABLE_PAYOUTS"] = "ENABLE_PAYOUTS";
17
16
  //hosting
18
17
  NotificationTypes["NEW_CUSTOMER"] = "NEW_CUSTOMER";
19
18
  NotificationTypes["MISSED_HOSTING"] = "MISSED_HOSTING";
20
19
  NotificationTypes["REVIEW_RECEIVED"] = "REVIEW_RECEIVED";
20
+ NotificationTypes["GOLD_BADGE_LOST"] = "GOLD_BADGE_LOST";
21
21
  NotificationTypes["REMOVED_CUSTOMER"] = "REMOVED_CUSTOMER";
22
+ NotificationTypes["GOLD_BADGE_EARNED"] = "GOLD_BADGE_EARNED";
22
23
  NotificationTypes["BOOKING_CANCELLATION"] = "BOOKING_CANCELLATION";
23
24
  NotificationTypes["REFUNDED_CANCELLATION"] = "REFUNDED_CANCELLATION";
24
25
  //customer
25
26
  NotificationTypes["PERSONAL_REFUND_OFFERED"] = "PERSONAL_REFUND_OFFERED";
26
- NotificationTypes["CANCELLED_BY_CUSTOMER"] = "CANCELLED_BY_CUSTOMER";
27
+ NotificationTypes["BOOKING_CANCELLED_BY_CUSTOMER"] = "CANCELLED_BY_CUSTOMER";
28
+ NotificationTypes["BOOKING_CANCELLED_BY_HOST"] = "CANCELLED_BY_HOST";
27
29
  NotificationTypes["SUCCESSFULL_BOOKING"] = "SUCCESSFULL_BOOKING";
28
30
  NotificationTypes["UPDATES_FROM_HOST"] = "UPDATES_FROM_HOST";
29
- NotificationTypes["CANCELLED_BY_HOST"] = "CANCELLED_BY_HOST";
30
31
  NotificationTypes["WELCOME_MEMBER"] = "WELCOME_MEMBER";
31
32
  //reminders
32
33
  NotificationTypes["CUSTOMER_SEANCE_REMINDER"] = "PRESCHEDULED_CUSTOMER_SEANCE_REMINDER";
33
34
  NotificationTypes["HOST_SEANCE_REMINDER"] = "PRESCHEDULED_HOST_SEANCE_REMINDER";
35
+ NotificationTypes["ENABLE_PAYOUTS"] = "ENABLE_PAYOUTS";
34
36
  //tips for hosts
35
37
  NotificationTypes["WELCOME_TO_COMMUNITY"] = "WELCOME_TO_COMMUNITY";
36
38
  NotificationTypes["CUSTOMER_HESISTANCY"] = "CUSTOMER_HESISTANCY";
@@ -42,12 +44,15 @@ var NotificationTypes;
42
44
  NotificationTypes["NEW_DEVICE"] = "NEW_DEVICE";
43
45
  //payments
44
46
  NotificationTypes["PAYOUT_SENT"] = "PAYOUT_SENT";
47
+ NotificationTypes["PAYOUT_MADE"] = "PAYOUT_MADE";
48
+ NotificationTypes["PAYOFF_SENT"] = "PAYOFF_SENT";
49
+ NotificationTypes["PAYOFF_MADE"] = "PAYOFF_MADE";
50
+ NotificationTypes["PAYOUT_LATER"] = "PAYOUT_LATER";
45
51
  NotificationTypes["REFUND_FAILED"] = "REFUND_FAILED";
46
52
  NotificationTypes["PAYOUT_FAILED"] = "PAYOUT_FAILED";
47
- NotificationTypes["PAYOUT_SUCCEED"] = "PAYOUT_SUCCEED";
48
- NotificationTypes["GOLD_BADGE_LOST"] = "GOLD_BADGE_LOST";
49
- NotificationTypes["GOLD_BADGE_EARNED"] = "GOLD_BADGE_EARNED";
50
- NotificationTypes["TRANSFERS_INACTIVE"] = "TRANSFERS_INACTIVE";
53
+ NotificationTypes["PAYOFF_FAILED"] = "PAYOFF_FAILED";
54
+ NotificationTypes["PAYOFF_TRANSFER_FAILED"] = "PAYOFF_TRANSFER_FAILED";
55
+ NotificationTypes["PAYOUT_TRANSFER_FAILED"] = "PAYOUT_TRANSFER_FAILED";
51
56
  NotificationTypes["STRIPE_CONNECTION_SUCCESS"] = "STRIPE_CONNECTION_SUCCESS";
52
57
  NotificationTypes["STRIPE_CONNECTION_FAILURE"] = "STRIPE_CONNECTION_FAILURE";
53
58
  })(NotificationTypes = exports.NotificationTypes || (exports.NotificationTypes = {}));
@@ -56,42 +61,50 @@ exports.CUSTOMER_NOTIFS = [
56
61
  NotificationTypes.PERSONAL_REFUND_OFFERED,
57
62
  NotificationTypes.COMPLETE_BOOKING_NOTIF,
58
63
  NotificationTypes.OFFER_PERSONAL_REFUND,
59
- NotificationTypes.CANCELLED_BY_CUSTOMER,
64
+ NotificationTypes.BOOKING_CANCELLED_BY_CUSTOMER,
60
65
  NotificationTypes.SUCCESSFULL_BOOKING,
61
66
  NotificationTypes.UPDATES_FROM_HOST,
62
- NotificationTypes.CANCELLED_BY_HOST,
67
+ NotificationTypes.BOOKING_CANCELLED_BY_HOST,
63
68
  NotificationTypes.WELCOME_MEMBER,
64
69
  NotificationTypes.REFUND_FAILED,
65
70
  NotificationTypes.NEW_DEVICE
66
71
  ];
67
72
  exports.HOST_NOTIFS = [
68
73
  NotificationTypes.PAYOUT_SENT,
74
+ NotificationTypes.PAYOFF_SENT,
75
+ NotificationTypes.PAYOUT_MADE,
76
+ NotificationTypes.PAYOFF_MADE,
77
+ NotificationTypes.PAYOUT_LATER,
69
78
  NotificationTypes.NEW_CUSTOMER,
70
79
  NotificationTypes.PAYOUT_FAILED,
80
+ NotificationTypes.PAYOFF_FAILED,
71
81
  NotificationTypes.ENABLE_PAYOUTS,
72
82
  NotificationTypes.MISSED_HOSTING,
73
- NotificationTypes.PAYOUT_SUCCEED,
74
83
  NotificationTypes.REVIEW_RECEIVED,
75
84
  NotificationTypes.GOLD_BADGE_LOST,
76
85
  NotificationTypes.SERVICE_DELETION,
77
86
  NotificationTypes.REMOVED_CUSTOMER,
78
87
  NotificationTypes.TAKEN_TIME_CHOSEN,
79
88
  NotificationTypes.GOLD_BADGE_EARNED,
80
- NotificationTypes.TRANSFERS_INACTIVE,
89
+ NotificationTypes.SEANCE_RESCHEDULED,
81
90
  NotificationTypes.CUSTOMER_HESISTANCY,
82
91
  NotificationTypes.BOOKING_CANCELLATION,
83
92
  NotificationTypes.WELCOME_TO_COMMUNITY,
84
93
  NotificationTypes.HOST_SEANCE_REMINDER,
85
94
  NotificationTypes.REFUNDED_CANCELLATION,
86
- NotificationTypes.SUCCESSFULL_RESCHEDULING,
87
- NotificationTypes.SEANCE_CANCELLED_BY_HOST,
95
+ NotificationTypes.NEW_SERVICE_REGISTRED,
96
+ NotificationTypes.SEANCE_REMOVED_BY_HOST,
97
+ NotificationTypes.PAYOFF_TRANSFER_FAILED,
98
+ NotificationTypes.PAYOUT_TRANSFER_FAILED,
88
99
  NotificationTypes.STRIPE_CONNECTION_SUCCESS,
89
100
  NotificationTypes.STRIPE_CONNECTION_FAILURE
90
101
  ];
91
102
  var NotificationIcons;
92
103
  (function (NotificationIcons) {
104
+ NotificationIcons["DISCONNECTION"] = "DISCONNECTION";
93
105
  NotificationIcons["CANCELLATION"] = "CANCELLATION";
94
106
  NotificationIcons["MINUS_USER"] = "MINUS_USER";
107
+ NotificationIcons["CONNECTION"] = "CONNECTION";
95
108
  NotificationIcons["CALENDAR"] = "CALENDAR";
96
109
  NotificationIcons["CONGRATS"] = "CONGRATS";
97
110
  NotificationIcons["SECURITY"] = "SECURITY";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.30.19",
3
+ "version": "1.30.22",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",