@verma-consulting/common-library 0.1.14 → 0.1.16

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/index.js CHANGED
@@ -49,7 +49,9 @@ __export(index_exports, {
49
49
  action: () => action,
50
50
  automaticTaxStatus: () => automaticTaxStatus,
51
51
  billingReason: () => billingReason,
52
+ billingScheme: () => billingScheme,
52
53
  camelCaseToWords: () => camelCaseToWords,
54
+ cancellationReason: () => cancellationReason,
53
55
  capitalizeSentence: () => capitalizeSentence,
54
56
  captureMethod: () => captureMethod,
55
57
  chatType: () => chatType,
@@ -61,6 +63,8 @@ __export(index_exports, {
61
63
  customerType: () => customerType,
62
64
  defaults: () => defaults_default,
63
65
  defaultsWithTypes: () => defaultsWithTypes_default,
66
+ disputeReason: () => disputeReason,
67
+ disputeStatus: () => disputeStatus,
64
68
  formatPhoneNumber: () => formatPhoneNumber,
65
69
  getRandomArbitrary: () => getRandomArbitrary,
66
70
  grabAge: () => grabAge,
@@ -72,15 +76,25 @@ __export(index_exports, {
72
76
  openInNewTab: () => openInNewTab,
73
77
  operationType: () => operationType,
74
78
  organizationFilterType: () => organizationFilterType,
79
+ paymentAllowRedirect: () => paymentAllowRedirect,
75
80
  paymentCancellationReason: () => paymentCancellationReason,
81
+ paymentFutureUsage: () => paymentFutureUsage,
82
+ paymentMethodAllowReDisplay: () => paymentMethodAllowReDisplay,
83
+ paymentMethodType: () => paymentMethodType,
76
84
  paymentStatus: () => paymentStatus,
77
85
  prettifyString: () => prettifyString,
86
+ priceType: () => priceType,
78
87
  productType: () => productType,
88
+ refundFailureReason: () => refundFailureReason,
89
+ refundPendingReason: () => refundPendingReason,
90
+ refundReason: () => refundReason,
91
+ refundStatus: () => refundStatus,
79
92
  snakeToPretty: () => snakeToPretty,
80
93
  status: () => status,
81
94
  stripHtmlTags: () => stripHtmlTags,
82
- subscriptionCancellationReason: () => subscriptionCancellationReason,
95
+ taxBehavior: () => taxBehavior,
83
96
  taxExempt: () => taxExempt,
97
+ tiersMode: () => tiersMode,
84
98
  toCurrencyValue: () => toCurrencyValue,
85
99
  userRole: () => userRole,
86
100
  userSource: () => userSource,
@@ -222,17 +236,17 @@ var userStatus = /* @__PURE__ */ ((userStatus2) => {
222
236
  userStatus2["Inactive"] = "Inactive";
223
237
  return userStatus2;
224
238
  })(userStatus || {});
225
- var subscriptionCancellationReason = /* @__PURE__ */ ((subscriptionCancellationReason2) => {
226
- subscriptionCancellationReason2["CustomerService"] = "customer_service";
227
- subscriptionCancellationReason2["LowQuality"] = "low_quality";
228
- subscriptionCancellationReason2["MissingFeatures"] = "missing_features";
229
- subscriptionCancellationReason2["SwitchedService"] = "switched_service";
230
- subscriptionCancellationReason2["TooComplex"] = "too_complex";
231
- subscriptionCancellationReason2["TooExpensive"] = "too_expensive";
232
- subscriptionCancellationReason2["Unused"] = "unused";
233
- subscriptionCancellationReason2["Other"] = "other";
234
- return subscriptionCancellationReason2;
235
- })(subscriptionCancellationReason || {});
239
+ var cancellationReason = /* @__PURE__ */ ((cancellationReason2) => {
240
+ cancellationReason2["CustomerService"] = "customer_service";
241
+ cancellationReason2["LowQuality"] = "low_quality";
242
+ cancellationReason2["MissingFeatures"] = "missing_features";
243
+ cancellationReason2["SwitchedService"] = "switched_service";
244
+ cancellationReason2["TooComplex"] = "too_complex";
245
+ cancellationReason2["TooExpensive"] = "too_expensive";
246
+ cancellationReason2["Unused"] = "unused";
247
+ cancellationReason2["Other"] = "other";
248
+ return cancellationReason2;
249
+ })(cancellationReason || {});
236
250
  var paymentCancellationReason = /* @__PURE__ */ ((paymentCancellationReason2) => {
237
251
  paymentCancellationReason2["abandoned"] = "abandoned";
238
252
  paymentCancellationReason2["automatic"] = "automatic";
@@ -250,18 +264,171 @@ var captureMethod = /* @__PURE__ */ ((captureMethod2) => {
250
264
  return captureMethod2;
251
265
  })(captureMethod || {});
252
266
  var paymentStatus = /* @__PURE__ */ ((paymentStatus2) => {
253
- paymentStatus2["canceled"] = "canceled";
254
- paymentStatus2["processing"] = "processing";
267
+ paymentStatus2["pending"] = "pending";
268
+ paymentStatus2["succeeded"] = "succeeded";
269
+ paymentStatus2["failed"] = "failed";
255
270
  paymentStatus2["requiresAction"] = "requires_action";
256
271
  paymentStatus2["requiresCapture"] = "requires_capture";
257
272
  paymentStatus2["requiresConfirmation"] = "requires_confirmation";
258
273
  paymentStatus2["requiresPaymentMethod"] = "requires_payment_method";
259
- paymentStatus2["succeeded"] = "succeeded";
260
274
  return paymentStatus2;
261
275
  })(paymentStatus || {});
276
+ var paymentAllowRedirect = /* @__PURE__ */ ((paymentAllowRedirect2) => {
277
+ paymentAllowRedirect2["always"] = "always";
278
+ paymentAllowRedirect2["never"] = "never";
279
+ return paymentAllowRedirect2;
280
+ })(paymentAllowRedirect || {});
281
+ var paymentFutureUsage = /* @__PURE__ */ ((paymentFutureUsage2) => {
282
+ paymentFutureUsage2["off_session"] = "off_session";
283
+ paymentFutureUsage2["on_session"] = "on_session";
284
+ return paymentFutureUsage2;
285
+ })(paymentFutureUsage || {});
286
+ var taxBehavior = /* @__PURE__ */ ((taxBehavior2) => {
287
+ taxBehavior2["exclusive"] = "exclusive";
288
+ taxBehavior2["inclusive"] = "inclusive";
289
+ taxBehavior2["unspecified"] = "unspecified";
290
+ return taxBehavior2;
291
+ })(taxBehavior || {});
292
+ var priceType = /* @__PURE__ */ ((priceType2) => {
293
+ priceType2["one_time"] = "one_time";
294
+ priceType2["recurring"] = "recurring";
295
+ return priceType2;
296
+ })(priceType || {});
297
+ var billingScheme = /* @__PURE__ */ ((billingScheme2) => {
298
+ billingScheme2["per_unit"] = "per_unit";
299
+ billingScheme2["tiered"] = "tiered";
300
+ return billingScheme2;
301
+ })(billingScheme || {});
302
+ var tiersMode = /* @__PURE__ */ ((tiersMode2) => {
303
+ tiersMode2["graduated"] = "graduated";
304
+ tiersMode2["volume"] = "volume";
305
+ return tiersMode2;
306
+ })(tiersMode || {});
307
+ var disputeReason = /* @__PURE__ */ ((disputeReason2) => {
308
+ disputeReason2["bankCannotProcess"] = "bank_cannot_process";
309
+ disputeReason2["checkReturned"] = "check_returned";
310
+ disputeReason2["creditNotProcessed"] = "credit_not_processed";
311
+ disputeReason2["customerInitiated"] = "customer_initiated";
312
+ disputeReason2["debitNotAuthorized"] = "debit_not_authorized";
313
+ disputeReason2["duplicate"] = "duplicate";
314
+ disputeReason2["fraudulent"] = "fraudulent";
315
+ disputeReason2["general"] = "general";
316
+ disputeReason2["incorrectAccountDetails"] = "incorrect_account_details";
317
+ disputeReason2["insufficientFunds"] = "insufficient_funds";
318
+ disputeReason2["noncompliant"] = "noncompliant";
319
+ disputeReason2["productNotReceived"] = "product_not_received";
320
+ disputeReason2["productUnacceptable"] = "product_unacceptable";
321
+ disputeReason2["subscriptionCanceled"] = "subscription_canceled";
322
+ disputeReason2["unrecognized"] = "unrecognized";
323
+ return disputeReason2;
324
+ })(disputeReason || {});
325
+ var disputeStatus = /* @__PURE__ */ ((disputeStatus2) => {
326
+ disputeStatus2["warningNeedsResponse"] = "warning_needs_response";
327
+ disputeStatus2["warningUnderReview"] = "warning_under_review";
328
+ disputeStatus2["warningClosed"] = "warning_closed";
329
+ disputeStatus2["needsResponse"] = "needs_response";
330
+ disputeStatus2["underReview"] = "under_review";
331
+ disputeStatus2["won"] = "won";
332
+ disputeStatus2["lost"] = "lost";
333
+ disputeStatus2["prevented"] = "prevented";
334
+ return disputeStatus2;
335
+ })(disputeStatus || {});
336
+ var refundStatus = /* @__PURE__ */ ((refundStatus2) => {
337
+ refundStatus2["pending"] = "pending";
338
+ refundStatus2["requiresAction"] = "requires_action";
339
+ refundStatus2["succeeded"] = "succeeded";
340
+ refundStatus2["failed"] = "failed";
341
+ refundStatus2["canceled"] = "canceled";
342
+ return refundStatus2;
343
+ })(refundStatus || {});
344
+ var refundReason = /* @__PURE__ */ ((refundReason2) => {
345
+ refundReason2["duplicate"] = "duplicate";
346
+ refundReason2["fraudulent"] = "fraudulent";
347
+ refundReason2["requestedByCustomer"] = "requested_by_customer";
348
+ refundReason2["expiredUncapturedCharge"] = "expired_uncaptured_charge";
349
+ return refundReason2;
350
+ })(refundReason || {});
351
+ var refundFailureReason = /* @__PURE__ */ ((refundFailureReason2) => {
352
+ refundFailureReason2["lostOrStolenCard"] = "lost_or_stolen_card";
353
+ refundFailureReason2["expiredOrCanceledCard"] = "expired_or_canceled_card";
354
+ refundFailureReason2["chargeForPendingRefundDisputed"] = "charge_for_pending_refund_disputed";
355
+ refundFailureReason2["insufficientFunds"] = "insufficient_funds";
356
+ refundFailureReason2["declined"] = "declined";
357
+ refundFailureReason2["merchantRequest"] = "merchant_request";
358
+ refundFailureReason2["unknown"] = "unknown";
359
+ return refundFailureReason2;
360
+ })(refundFailureReason || {});
361
+ var refundPendingReason = /* @__PURE__ */ ((refundPendingReason2) => {
362
+ refundPendingReason2["processing"] = "processing";
363
+ refundPendingReason2["insufficientFunds"] = "insufficient_funds";
364
+ refundPendingReason2["chargePending"] = "charge_pending";
365
+ return refundPendingReason2;
366
+ })(refundPendingReason || {});
367
+ var paymentMethodAllowReDisplay = /* @__PURE__ */ ((paymentMethodAllowReDisplay2) => {
368
+ paymentMethodAllowReDisplay2["always"] = "always";
369
+ paymentMethodAllowReDisplay2["limited"] = "limited";
370
+ paymentMethodAllowReDisplay2["unspecified"] = "unspecified";
371
+ return paymentMethodAllowReDisplay2;
372
+ })(paymentMethodAllowReDisplay || {});
373
+ var paymentMethodType = /* @__PURE__ */ ((paymentMethodType2) => {
374
+ paymentMethodType2["AcssDebit"] = "acss_debit";
375
+ paymentMethodType2["Affirm"] = "affirm";
376
+ paymentMethodType2["AfterpayClearpay"] = "afterpay_clearpay";
377
+ paymentMethodType2["Alipay"] = "alipay";
378
+ paymentMethodType2["Alma"] = "alma";
379
+ paymentMethodType2["AmazonPay"] = "amazon_pay";
380
+ paymentMethodType2["AuBecsDebit"] = "au_becs_debit";
381
+ paymentMethodType2["BacsDebit"] = "bacs_debit";
382
+ paymentMethodType2["Bancontact"] = "bancontact";
383
+ paymentMethodType2["Billie"] = "billie";
384
+ paymentMethodType2["Blik"] = "blik";
385
+ paymentMethodType2["Boleto"] = "boleto";
386
+ paymentMethodType2["Card"] = "card";
387
+ paymentMethodType2["CardPresent"] = "card_present";
388
+ paymentMethodType2["CashApp"] = "cashapp";
389
+ paymentMethodType2["Crypto"] = "crypto";
390
+ paymentMethodType2["CustomerBalance"] = "customer_balance";
391
+ paymentMethodType2["Eps"] = "eps";
392
+ paymentMethodType2["Fpx"] = "fpx";
393
+ paymentMethodType2["Giropay"] = "giropay";
394
+ paymentMethodType2["GrabPay"] = "grabpay";
395
+ paymentMethodType2["Ideal"] = "ideal";
396
+ paymentMethodType2["InteracPresent"] = "interac_present";
397
+ paymentMethodType2["KakaoPay"] = "kakao_pay";
398
+ paymentMethodType2["Klarna"] = "klarna";
399
+ paymentMethodType2["Konbini"] = "konbini";
400
+ paymentMethodType2["KrCard"] = "kr_card";
401
+ paymentMethodType2["Link"] = "link";
402
+ paymentMethodType2["MbWay"] = "mb_way";
403
+ paymentMethodType2["MobilePay"] = "mobilepay";
404
+ paymentMethodType2["Multibanco"] = "multibanco";
405
+ paymentMethodType2["NaverPay"] = "naver_pay";
406
+ paymentMethodType2["NzBankAccount"] = "nz_bank_account";
407
+ paymentMethodType2["Oxxo"] = "oxxo";
408
+ paymentMethodType2["P24"] = "p24";
409
+ paymentMethodType2["PayByBank"] = "pay_by_bank";
410
+ paymentMethodType2["Payco"] = "payco";
411
+ paymentMethodType2["PayNow"] = "paynow";
412
+ paymentMethodType2["Paypal"] = "paypal";
413
+ paymentMethodType2["PayPay"] = "paypay";
414
+ paymentMethodType2["Pix"] = "pix";
415
+ paymentMethodType2["PromptPay"] = "promptpay";
416
+ paymentMethodType2["RevolutPay"] = "revolut_pay";
417
+ paymentMethodType2["SamsungPay"] = "samsung_pay";
418
+ paymentMethodType2["Satispay"] = "satispay";
419
+ paymentMethodType2["SepaDebit"] = "sepa_debit";
420
+ paymentMethodType2["Sofort"] = "sofort";
421
+ paymentMethodType2["Swish"] = "swish";
422
+ paymentMethodType2["Twint"] = "twint";
423
+ paymentMethodType2["UsBankAccount"] = "us_bank_account";
424
+ paymentMethodType2["WechatPay"] = "wechat_pay";
425
+ paymentMethodType2["Zip"] = "zip";
426
+ return paymentMethodType2;
427
+ })(paymentMethodType || {});
262
428
  var OrganizationFeatures = /* @__PURE__ */ ((OrganizationFeatures2) => {
263
429
  OrganizationFeatures2["clients"] = "clients";
264
430
  OrganizationFeatures2["tasks"] = "tasks";
431
+ OrganizationFeatures2["products"] = "products";
265
432
  OrganizationFeatures2["inventories"] = "inventories";
266
433
  OrganizationFeatures2["invoices"] = "invoices";
267
434
  OrganizationFeatures2["leads"] = "leads";
@@ -269,9 +436,11 @@ var OrganizationFeatures = /* @__PURE__ */ ((OrganizationFeatures2) => {
269
436
  OrganizationFeatures2["contacts"] = "contacts";
270
437
  OrganizationFeatures2["engagements"] = "engagements";
271
438
  OrganizationFeatures2["campaigns"] = "campaigns";
272
- OrganizationFeatures2["products"] = "products";
273
439
  OrganizationFeatures2["subscriptions"] = "subscriptions";
274
440
  OrganizationFeatures2["payments"] = "payments";
441
+ OrganizationFeatures2["paymentMethods"] = "paymentMethods";
442
+ OrganizationFeatures2["refunds"] = "refunds";
443
+ OrganizationFeatures2["disputes"] = "disputes";
275
444
  OrganizationFeatures2["dataPools"] = "dataPools";
276
445
  OrganizationFeatures2["lists"] = "lists";
277
446
  OrganizationFeatures2["reports"] = "reports";
@@ -763,17 +932,46 @@ var constants = {
763
932
  ],
764
933
  MODEL_APP_MAPPING: {
765
934
  clients: "cms",
935
+ tasks: "cms",
936
+ products: "cms",
766
937
  inventories: "cms",
767
938
  invoices: "cms",
768
- tasks: "cms",
769
- campaigns: "crm",
770
939
  contacts: "crm",
771
- deals: "crm",
772
940
  engagements: "crm",
941
+ campaigns: "crm",
773
942
  leads: "crm",
943
+ deals: "crm",
944
+ subscriptions: "financials",
774
945
  payments: "financials",
775
- products: "financials",
776
- subscriptions: "financials"
946
+ paymentMethods: "financials",
947
+ refunds: "financials",
948
+ disputes: "financials"
949
+ },
950
+ MODEL_CATEGORY_MAP: {
951
+ clients: "content",
952
+ tasks: "content",
953
+ products: "content",
954
+ inventories: "content",
955
+ invoices: "content",
956
+ contacts: "relations",
957
+ engagements: "relations",
958
+ campaigns: "relations",
959
+ leads: "relations",
960
+ deals: "relations",
961
+ subscriptions: "financials",
962
+ payments: "financials",
963
+ paymentMethods: "financials",
964
+ refunds: "financials",
965
+ disputes: "financials",
966
+ content: ["clients", "tasks", "products", "inventories", "invoices"],
967
+ relations: ["contacts", "engagements", "campaigns", "leads", "deals"],
968
+ financials: [
969
+ "subscriptions",
970
+ "payments",
971
+ "paymentMethods",
972
+ "refunds",
973
+ "disputes"
974
+ ]
777
975
  },
778
976
  NOT_INCLUDED_FIELDS: [
779
977
  "id",
@@ -790,7 +988,7 @@ var constants = {
790
988
  GQL_FIELD_TYPE: {
791
989
  LIST: "LIST",
792
990
  OBJECT: "OBJECT",
793
- ENUM: "ENUM",
991
+ Enum: "Enum",
794
992
  String: "String",
795
993
  Float: "Float",
796
994
  Int: "Int",
@@ -812,23 +1010,6 @@ var constants = {
812
1010
  assignees: "assignees",
813
1011
  Team: "Team"
814
1012
  },
815
- MODEL_CATEGORY_MAP: {
816
- leads: "relations",
817
- campaigns: "relations",
818
- tasks: "content",
819
- clients: "content",
820
- inventories: "content",
821
- deals: "relations",
822
- invoices: "content",
823
- contacts: "relations",
824
- engagements: "relations",
825
- products: "financials",
826
- subscriptions: "financials",
827
- payments: "financials",
828
- content: ["clients", "inventories", "invoices", "tasks"],
829
- relations: ["deals", "contacts", "engagements", "leads", "campaigns"],
830
- financials: ["products", "subscriptions", "payments"]
831
- },
832
1013
  SETTING_TABS: {
833
1014
  Personal: "Personal",
834
1015
  Notifications: "Notifications",
@@ -912,430 +1093,7 @@ var constants = {
912
1093
  "Wisconsin",
913
1094
  "Wyoming"
914
1095
  ],
915
- COUNTRIES: [
916
- { code: "AD", label: "Andorra", phone: "376" },
917
- {
918
- code: "AE",
919
- label: "United Arab Emirates",
920
- phone: "971"
921
- },
922
- { code: "AF", label: "Afghanistan", phone: "93" },
923
- {
924
- code: "AG",
925
- label: "Antigua and Barbuda",
926
- phone: "1-268"
927
- },
928
- { code: "AI", label: "Anguilla", phone: "1-264" },
929
- { code: "AL", label: "Albania", phone: "355" },
930
- { code: "AM", label: "Armenia", phone: "374" },
931
- { code: "AO", label: "Angola", phone: "244" },
932
- { code: "AQ", label: "Antarctica", phone: "672" },
933
- { code: "AR", label: "Argentina", phone: "54" },
934
- { code: "AS", label: "American Samoa", phone: "1-684" },
935
- { code: "AT", label: "Austria", phone: "43" },
936
- {
937
- code: "AU",
938
- label: "Australia",
939
- phone: "61",
940
- suggested: true
941
- },
942
- { code: "AW", label: "Aruba", phone: "297" },
943
- { code: "AX", label: "Alland Islands", phone: "358" },
944
- { code: "AZ", label: "Azerbaijan", phone: "994" },
945
- {
946
- code: "BA",
947
- label: "Bosnia and Herzegovina",
948
- phone: "387"
949
- },
950
- { code: "BB", label: "Barbados", phone: "1-246" },
951
- { code: "BD", label: "Bangladesh", phone: "880" },
952
- { code: "BE", label: "Belgium", phone: "32" },
953
- { code: "BF", label: "Burkina Faso", phone: "226" },
954
- { code: "BG", label: "Bulgaria", phone: "359" },
955
- { code: "BH", label: "Bahrain", phone: "973" },
956
- { code: "BI", label: "Burundi", phone: "257" },
957
- { code: "BJ", label: "Benin", phone: "229" },
958
- { code: "BL", label: "Saint Barthelemy", phone: "590" },
959
- { code: "BM", label: "Bermuda", phone: "1-441" },
960
- { code: "BN", label: "Brunei Darussalam", phone: "673" },
961
- { code: "BO", label: "Bolivia", phone: "591" },
962
- { code: "BR", label: "Brazil", phone: "55" },
963
- { code: "BS", label: "Bahamas", phone: "1-242" },
964
- { code: "BT", label: "Bhutan", phone: "975" },
965
- { code: "BV", label: "Bouvet Island", phone: "47" },
966
- { code: "BW", label: "Botswana", phone: "267" },
967
- { code: "BY", label: "Belarus", phone: "375" },
968
- { code: "BZ", label: "Belize", phone: "501" },
969
- {
970
- code: "CA",
971
- label: "Canada",
972
- phone: "1",
973
- suggested: true
974
- },
975
- {
976
- code: "CC",
977
- label: "Cocos (Keeling) Islands",
978
- phone: "61"
979
- },
980
- {
981
- code: "CD",
982
- label: "Congo, Democratic Republic of the",
983
- phone: "243"
984
- },
985
- {
986
- code: "CF",
987
- label: "Central African Republic",
988
- phone: "236"
989
- },
990
- {
991
- code: "CG",
992
- label: "Congo, Republic of the",
993
- phone: "242"
994
- },
995
- { code: "CH", label: "Switzerland", phone: "41" },
996
- { code: "CI", label: "Cote d'Ivoire", phone: "225" },
997
- { code: "CK", label: "Cook Islands", phone: "682" },
998
- { code: "CL", label: "Chile", phone: "56" },
999
- { code: "CM", label: "Cameroon", phone: "237" },
1000
- { code: "CN", label: "China", phone: "86" },
1001
- { code: "CO", label: "Colombia", phone: "57" },
1002
- { code: "CR", label: "Costa Rica", phone: "506" },
1003
- { code: "CU", label: "Cuba", phone: "53" },
1004
- { code: "CV", label: "Cape Verde", phone: "238" },
1005
- { code: "CW", label: "Curacao", phone: "599" },
1006
- { code: "CX", label: "Christmas Island", phone: "61" },
1007
- { code: "CY", label: "Cyprus", phone: "357" },
1008
- { code: "CZ", label: "Czech Republic", phone: "420" },
1009
- {
1010
- code: "DE",
1011
- label: "Germany",
1012
- phone: "49",
1013
- suggested: true
1014
- },
1015
- { code: "DJ", label: "Djibouti", phone: "253" },
1016
- { code: "DK", label: "Denmark", phone: "45" },
1017
- { code: "DM", label: "Dominica", phone: "1-767" },
1018
- {
1019
- code: "DO",
1020
- label: "Dominican Republic",
1021
- phone: "1-809"
1022
- },
1023
- { code: "DZ", label: "Algeria", phone: "213" },
1024
- { code: "EC", label: "Ecuador", phone: "593" },
1025
- { code: "EE", label: "Estonia", phone: "372" },
1026
- { code: "EG", label: "Egypt", phone: "20" },
1027
- { code: "EH", label: "Western Sahara", phone: "212" },
1028
- { code: "ER", label: "Eritrea", phone: "291" },
1029
- { code: "ES", label: "Spain", phone: "34" },
1030
- { code: "ET", label: "Ethiopia", phone: "251" },
1031
- { code: "FI", label: "Finland", phone: "358" },
1032
- { code: "FJ", label: "Fiji", phone: "679" },
1033
- {
1034
- code: "FK",
1035
- label: "Falkland Islands (Malvinas)",
1036
- phone: "500"
1037
- },
1038
- {
1039
- code: "FM",
1040
- label: "Micronesia, Federated States of",
1041
- phone: "691"
1042
- },
1043
- { code: "FO", label: "Faroe Islands", phone: "298" },
1044
- {
1045
- code: "FR",
1046
- label: "France",
1047
- phone: "33",
1048
- suggested: true
1049
- },
1050
- { code: "GA", label: "Gabon", phone: "241" },
1051
- { code: "GB", label: "United Kingdom", phone: "44" },
1052
- { code: "GD", label: "Grenada", phone: "1-473" },
1053
- { code: "GE", label: "Georgia", phone: "995" },
1054
- { code: "GF", label: "French Guiana", phone: "594" },
1055
- { code: "GG", label: "Guernsey", phone: "44" },
1056
- { code: "GH", label: "Ghana", phone: "233" },
1057
- { code: "GI", label: "Gibraltar", phone: "350" },
1058
- { code: "GL", label: "Greenland", phone: "299" },
1059
- { code: "GM", label: "Gambia", phone: "220" },
1060
- { code: "GN", label: "Guinea", phone: "224" },
1061
- { code: "GP", label: "Guadeloupe", phone: "590" },
1062
- { code: "GQ", label: "Equatorial Guinea", phone: "240" },
1063
- { code: "GR", label: "Greece", phone: "30" },
1064
- {
1065
- code: "GS",
1066
- label: "South Georgia and the South Sandwich Islands",
1067
- phone: "500"
1068
- },
1069
- { code: "GT", label: "Guatemala", phone: "502" },
1070
- { code: "GU", label: "Guam", phone: "1-671" },
1071
- { code: "GW", label: "Guinea-Bissau", phone: "245" },
1072
- { code: "GY", label: "Guyana", phone: "592" },
1073
- { code: "HK", label: "Hong Kong", phone: "852" },
1074
- {
1075
- code: "HM",
1076
- label: "Heard Island and McDonald Islands",
1077
- phone: "672"
1078
- },
1079
- { code: "HN", label: "Honduras", phone: "504" },
1080
- { code: "HR", label: "Croatia", phone: "385" },
1081
- { code: "HT", label: "Haiti", phone: "509" },
1082
- { code: "HU", label: "Hungary", phone: "36" },
1083
- { code: "ID", label: "Indonesia", phone: "62" },
1084
- { code: "IE", label: "Ireland", phone: "353" },
1085
- { code: "IL", label: "Israel", phone: "972" },
1086
- { code: "IM", label: "Isle of Man", phone: "44" },
1087
- { code: "IN", label: "India", phone: "91" },
1088
- {
1089
- code: "IO",
1090
- label: "British Indian Ocean Territory",
1091
- phone: "246"
1092
- },
1093
- { code: "IQ", label: "Iraq", phone: "964" },
1094
- {
1095
- code: "IR",
1096
- label: "Iran, Islamic Republic of",
1097
- phone: "98"
1098
- },
1099
- { code: "IS", label: "Iceland", phone: "354" },
1100
- { code: "IT", label: "Italy", phone: "39" },
1101
- { code: "JE", label: "Jersey", phone: "44" },
1102
- { code: "JM", label: "Jamaica", phone: "1-876" },
1103
- { code: "JO", label: "Jordan", phone: "962" },
1104
- {
1105
- code: "JP",
1106
- label: "Japan",
1107
- phone: "81",
1108
- suggested: true
1109
- },
1110
- { code: "KE", label: "Kenya", phone: "254" },
1111
- { code: "KG", label: "Kyrgyzstan", phone: "996" },
1112
- { code: "KH", label: "Cambodia", phone: "855" },
1113
- { code: "KI", label: "Kiribati", phone: "686" },
1114
- { code: "KM", label: "Comoros", phone: "269" },
1115
- {
1116
- code: "KN",
1117
- label: "Saint Kitts and Nevis",
1118
- phone: "1-869"
1119
- },
1120
- {
1121
- code: "KP",
1122
- label: "Korea, Democratic People's Republic of",
1123
- phone: "850"
1124
- },
1125
- { code: "KR", label: "Korea, Republic of", phone: "82" },
1126
- { code: "KW", label: "Kuwait", phone: "965" },
1127
- { code: "KY", label: "Cayman Islands", phone: "1-345" },
1128
- { code: "KZ", label: "Kazakhstan", phone: "7" },
1129
- {
1130
- code: "LA",
1131
- label: "Lao People's Democratic Republic",
1132
- phone: "856"
1133
- },
1134
- { code: "LB", label: "Lebanon", phone: "961" },
1135
- { code: "LC", label: "Saint Lucia", phone: "1-758" },
1136
- { code: "LI", label: "Liechtenstein", phone: "423" },
1137
- { code: "LK", label: "Sri Lanka", phone: "94" },
1138
- { code: "LR", label: "Liberia", phone: "231" },
1139
- { code: "LS", label: "Lesotho", phone: "266" },
1140
- { code: "LT", label: "Lithuania", phone: "370" },
1141
- { code: "LU", label: "Luxembourg", phone: "352" },
1142
- { code: "LV", label: "Latvia", phone: "371" },
1143
- { code: "LY", label: "Libya", phone: "218" },
1144
- { code: "MA", label: "Morocco", phone: "212" },
1145
- { code: "MC", label: "Monaco", phone: "377" },
1146
- {
1147
- code: "MD",
1148
- label: "Moldova, Republic of",
1149
- phone: "373"
1150
- },
1151
- { code: "ME", label: "Montenegro", phone: "382" },
1152
- {
1153
- code: "MF",
1154
- label: "Saint Martin (French part)",
1155
- phone: "590"
1156
- },
1157
- { code: "MG", label: "Madagascar", phone: "261" },
1158
- { code: "MH", label: "Marshall Islands", phone: "692" },
1159
- {
1160
- code: "MK",
1161
- label: "Macedonia, the Former Yugoslav Republic of",
1162
- phone: "389"
1163
- },
1164
- { code: "ML", label: "Mali", phone: "223" },
1165
- { code: "MM", label: "Myanmar", phone: "95" },
1166
- { code: "MN", label: "Mongolia", phone: "976" },
1167
- { code: "MO", label: "Macao", phone: "853" },
1168
- {
1169
- code: "MP",
1170
- label: "Northern Mariana Islands",
1171
- phone: "1-670"
1172
- },
1173
- { code: "MQ", label: "Martinique", phone: "596" },
1174
- { code: "MR", label: "Mauritania", phone: "222" },
1175
- { code: "MS", label: "Montserrat", phone: "1-664" },
1176
- { code: "MT", label: "Malta", phone: "356" },
1177
- { code: "MU", label: "Mauritius", phone: "230" },
1178
- { code: "MV", label: "Maldives", phone: "960" },
1179
- { code: "MW", label: "Malawi", phone: "265" },
1180
- { code: "MX", label: "Mexico", phone: "52" },
1181
- { code: "MY", label: "Malaysia", phone: "60" },
1182
- { code: "MZ", label: "Mozambique", phone: "258" },
1183
- { code: "NA", label: "Namibia", phone: "264" },
1184
- { code: "NC", label: "New Caledonia", phone: "687" },
1185
- { code: "NE", label: "Niger", phone: "227" },
1186
- { code: "NF", label: "Norfolk Island", phone: "672" },
1187
- { code: "NG", label: "Nigeria", phone: "234" },
1188
- { code: "NI", label: "Nicaragua", phone: "505" },
1189
- { code: "NL", label: "Netherlands", phone: "31" },
1190
- { code: "NO", label: "Norway", phone: "47" },
1191
- { code: "NP", label: "Nepal", phone: "977" },
1192
- { code: "NR", label: "Nauru", phone: "674" },
1193
- { code: "NU", label: "Niue", phone: "683" },
1194
- { code: "NZ", label: "New Zealand", phone: "64" },
1195
- { code: "OM", label: "Oman", phone: "968" },
1196
- { code: "PA", label: "Panama", phone: "507" },
1197
- { code: "PE", label: "Peru", phone: "51" },
1198
- { code: "PF", label: "French Polynesia", phone: "689" },
1199
- { code: "PG", label: "Papua New Guinea", phone: "675" },
1200
- { code: "PH", label: "Philippines", phone: "63" },
1201
- { code: "PK", label: "Pakistan", phone: "92" },
1202
- { code: "PL", label: "Poland", phone: "48" },
1203
- {
1204
- code: "PM",
1205
- label: "Saint Pierre and Miquelon",
1206
- phone: "508"
1207
- },
1208
- { code: "PN", label: "Pitcairn", phone: "870" },
1209
- { code: "PR", label: "Puerto Rico", phone: "1" },
1210
- {
1211
- code: "PS",
1212
- label: "Palestine, State of",
1213
- phone: "970"
1214
- },
1215
- { code: "PT", label: "Portugal", phone: "351" },
1216
- { code: "PW", label: "Palau", phone: "680" },
1217
- { code: "PY", label: "Paraguay", phone: "595" },
1218
- { code: "QA", label: "Qatar", phone: "974" },
1219
- { code: "RE", label: "Reunion", phone: "262" },
1220
- { code: "RO", label: "Romania", phone: "40" },
1221
- { code: "RS", label: "Serbia", phone: "381" },
1222
- { code: "RU", label: "Russian Federation", phone: "7" },
1223
- { code: "RW", label: "Rwanda", phone: "250" },
1224
- { code: "SA", label: "Saudi Arabia", phone: "966" },
1225
- { code: "SB", label: "Solomon Islands", phone: "677" },
1226
- { code: "SC", label: "Seychelles", phone: "248" },
1227
- { code: "SD", label: "Sudan", phone: "249" },
1228
- { code: "SE", label: "Sweden", phone: "46" },
1229
- { code: "SG", label: "Singapore", phone: "65" },
1230
- { code: "SH", label: "Saint Helena", phone: "290" },
1231
- { code: "SI", label: "Slovenia", phone: "386" },
1232
- {
1233
- code: "SJ",
1234
- label: "Svalbard and Jan Mayen",
1235
- phone: "47"
1236
- },
1237
- { code: "SK", label: "Slovakia", phone: "421" },
1238
- { code: "SL", label: "Sierra Leone", phone: "232" },
1239
- { code: "SM", label: "San Marino", phone: "378" },
1240
- { code: "SN", label: "Senegal", phone: "221" },
1241
- { code: "SO", label: "Somalia", phone: "252" },
1242
- { code: "SR", label: "Suriname", phone: "597" },
1243
- { code: "SS", label: "South Sudan", phone: "211" },
1244
- {
1245
- code: "ST",
1246
- label: "Sao Tome and Principe",
1247
- phone: "239"
1248
- },
1249
- { code: "SV", label: "El Salvador", phone: "503" },
1250
- {
1251
- code: "SX",
1252
- label: "Sint Maarten (Dutch part)",
1253
- phone: "1-721"
1254
- },
1255
- {
1256
- code: "SY",
1257
- label: "Syrian Arab Republic",
1258
- phone: "963"
1259
- },
1260
- { code: "SZ", label: "Swaziland", phone: "268" },
1261
- {
1262
- code: "TC",
1263
- label: "Turks and Caicos Islands",
1264
- phone: "1-649"
1265
- },
1266
- { code: "TD", label: "Chad", phone: "235" },
1267
- {
1268
- code: "TF",
1269
- label: "French Southern Territories",
1270
- phone: "262"
1271
- },
1272
- { code: "TG", label: "Togo", phone: "228" },
1273
- { code: "TH", label: "Thailand", phone: "66" },
1274
- { code: "TJ", label: "Tajikistan", phone: "992" },
1275
- { code: "TK", label: "Tokelau", phone: "690" },
1276
- { code: "TL", label: "Timor-Leste", phone: "670" },
1277
- { code: "TM", label: "Turkmenistan", phone: "993" },
1278
- { code: "TN", label: "Tunisia", phone: "216" },
1279
- { code: "TO", label: "Tonga", phone: "676" },
1280
- { code: "TR", label: "Turkey", phone: "90" },
1281
- {
1282
- code: "TT",
1283
- label: "Trinidad and Tobago",
1284
- phone: "1-868"
1285
- },
1286
- { code: "TV", label: "Tuvalu", phone: "688" },
1287
- {
1288
- code: "TW",
1289
- label: "Taiwan",
1290
- phone: "886"
1291
- },
1292
- {
1293
- code: "TZ",
1294
- label: "United Republic of Tanzania",
1295
- phone: "255"
1296
- },
1297
- { code: "UA", label: "Ukraine", phone: "380" },
1298
- { code: "UG", label: "Uganda", phone: "256" },
1299
- {
1300
- code: "US",
1301
- label: "United States Of America",
1302
- phone: "1",
1303
- suggested: true
1304
- },
1305
- { code: "UY", label: "Uruguay", phone: "598" },
1306
- { code: "UZ", label: "Uzbekistan", phone: "998" },
1307
- {
1308
- code: "VA",
1309
- label: "Holy See (Vatican City State)",
1310
- phone: "379"
1311
- },
1312
- {
1313
- code: "VC",
1314
- label: "Saint Vincent and the Grenadines",
1315
- phone: "1-784"
1316
- },
1317
- { code: "VE", label: "Venezuela", phone: "58" },
1318
- {
1319
- code: "VG",
1320
- label: "British Virgin Islands",
1321
- phone: "1-284"
1322
- },
1323
- {
1324
- code: "VI",
1325
- label: "US Virgin Islands",
1326
- phone: "1-340"
1327
- },
1328
- { code: "VN", label: "Vietnam", phone: "84" },
1329
- { code: "VU", label: "Vanuatu", phone: "678" },
1330
- { code: "WF", label: "Wallis and Futuna", phone: "681" },
1331
- { code: "WS", label: "Samoa", phone: "685" },
1332
- { code: "XK", label: "Kosovo", phone: "383" },
1333
- { code: "YE", label: "Yemen", phone: "967" },
1334
- { code: "YT", label: "Mayotte", phone: "262" },
1335
- { code: "ZA", label: "South Africa", phone: "27" },
1336
- { code: "ZM", label: "Zambia", phone: "260" },
1337
- { code: "ZW", label: "Zimbabwe", phone: "263" }
1338
- ],
1096
+ COUNTRIES: ["USA"],
1339
1097
  CURRENCIES: {
1340
1098
  aed: "United Arab Emirates Dirham",
1341
1099
  afn: "Afghan Afghani",
@@ -1505,7 +1263,7 @@ var constants = {
1505
1263
  xpf: "CFP Franc",
1506
1264
  yer: "Yemeni Rial",
1507
1265
  zar: "South African Rand",
1508
- zmk: "Zambian Kwacha",
1266
+ zmk: "Zambian Kwacha (pre-2013)",
1509
1267
  zmw: "Zambian Kwacha",
1510
1268
  zwl: "Zimbabwean Dollar"
1511
1269
  },
@@ -1832,6 +1590,17 @@ var constants_default = constants;
1832
1590
 
1833
1591
  // src/defaults.ts
1834
1592
  var defaults = {
1593
+ organizations: {
1594
+ name: "",
1595
+ website: "",
1596
+ industry: "",
1597
+ currency: "usd",
1598
+ linkedinUrl: "",
1599
+ facebookUrl: "",
1600
+ twitterUrl: "",
1601
+ angelUrl: "",
1602
+ crunchbaseUrl: ""
1603
+ },
1835
1604
  users: {
1836
1605
  firstName: "",
1837
1606
  lastName: "",
@@ -1851,11 +1620,7 @@ var defaults = {
1851
1620
  deletionAlerts: false,
1852
1621
  device: "Do Not Notify"
1853
1622
  },
1854
- platformSettings: {
1855
- mode: "light",
1856
- language: "english",
1857
- currency: "usd"
1858
- }
1623
+ platformSettings: { mode: "light", language: "english", currency: "usd" }
1859
1624
  },
1860
1625
  clients: {
1861
1626
  name: "",
@@ -1875,7 +1640,7 @@ var defaults = {
1875
1640
  annualRevenue: 0,
1876
1641
  balance: 0,
1877
1642
  nextInvoiceSequence: 1,
1878
- taxExempt: "none",
1643
+ taxExempt: "null",
1879
1644
  website: "",
1880
1645
  source: "Advertisement",
1881
1646
  logoUrl: "",
@@ -1891,88 +1656,60 @@ var defaults = {
1891
1656
  engagements: "",
1892
1657
  tasks: ""
1893
1658
  },
1894
- contacts: {
1659
+ tasks: {
1895
1660
  name: "",
1896
1661
  description: "",
1897
1662
  status: "Ready",
1898
- email: "",
1899
- phone: "",
1900
- role: "",
1901
- linkedinUrl: "",
1902
- twitterUrl: "",
1663
+ priority: "Medium",
1664
+ dueDate: null,
1665
+ reminder: false,
1666
+ reminderDate: null,
1667
+ reminderTime: "",
1668
+ repeat: false,
1669
+ repeatDate: null,
1670
+ repeatTime: "",
1903
1671
  client: "",
1904
- engagements: ""
1672
+ assignee: ""
1905
1673
  },
1906
- inventories: {
1674
+ products: {
1907
1675
  name: "",
1908
- description: "",
1676
+ description: null,
1909
1677
  status: "Ready",
1910
- amount: 0,
1911
- quantity: 0
1678
+ productType: "service",
1679
+ client: "",
1680
+ inventory: "",
1681
+ accountOwner: "",
1682
+ active: true,
1683
+ shippable: false,
1684
+ statementDescriptor: "",
1685
+ taxCode: null,
1686
+ unitLabel: null,
1687
+ url: ""
1912
1688
  },
1913
- organizations: {
1914
- name: "",
1915
- website: "",
1916
- industry: "",
1689
+ packageDimensions: { height: 0, length: 0, weight: 0, width: 0 },
1690
+ prices: {
1691
+ active: true,
1692
+ unitAmount: 0,
1693
+ unitAmountDecimal: null,
1694
+ lookupKey: "",
1695
+ type: "",
1696
+ taxBehavior: "unspecified",
1917
1697
  currency: "usd",
1918
- linkedinUrl: "",
1919
- facebookUrl: "",
1920
- twitterUrl: "",
1921
- angelUrl: "",
1922
- crunchbaseUrl: ""
1923
- },
1924
- activties: {
1925
- label: "",
1926
- value: "",
1927
- modelName: "",
1928
- path: ""
1929
- },
1930
- leads: {
1931
- name: "",
1932
- description: "",
1933
- status: "Ready",
1934
- leadType: "AttemtpedToContact",
1935
- source: "Advertisement",
1936
- amount: 0,
1937
- projectedClosingDate: null,
1938
- expectedRevenue: 0,
1939
- probability: 0,
1940
- nextStep: "",
1941
- accountOwner: "",
1942
- client: "",
1943
- campaign: ""
1698
+ billingScheme: "",
1699
+ recurring: {
1700
+ intervalCount: 0,
1701
+ interval: "",
1702
+ aggregateUsage: "",
1703
+ usageType: "",
1704
+ trialPeriodDays: 0
1705
+ }
1944
1706
  },
1945
- deals: {
1707
+ inventories: {
1946
1708
  name: "",
1947
1709
  description: "",
1948
1710
  status: "Ready",
1949
- dealType: "New",
1950
- source: "Advertisement",
1951
1711
  amount: 0,
1952
- closingDate: null,
1953
- expectedRevenue: 0,
1954
- probability: 0,
1955
- nextStep: "",
1956
- accountOwner: "",
1957
- client: "",
1958
- campaign: ""
1959
- },
1960
- campaigns: {
1961
- name: "",
1962
- description: "",
1963
- status: "Ready",
1964
- priority: "Medium",
1965
- startDate: null,
1966
- endDate: null,
1967
- campaignType: "Email",
1968
- budgetedCost: 0,
1969
- expectedRevenue: 0,
1970
- actualCost: 0,
1971
- numbersSent: 0,
1972
- expectedResponse: "",
1973
- accountOwner: "",
1974
- leads: "",
1975
- deals: ""
1712
+ quantity: 0
1976
1713
  },
1977
1714
  invoices: {
1978
1715
  name: "",
@@ -2005,7 +1742,7 @@ var defaults = {
2005
1742
  collectionMethod: "charge_automatically",
2006
1743
  customerEmail: "",
2007
1744
  customerPhone: "",
2008
- customerTaxExempt: "none",
1745
+ customerTaxExempt: "null",
2009
1746
  invoicePdf: "",
2010
1747
  lastFinalizationError: "",
2011
1748
  number: null,
@@ -2017,9 +1754,17 @@ var defaults = {
2017
1754
  accountOwner: "",
2018
1755
  deal: ""
2019
1756
  },
2020
- issuer: {
2021
- account: "",
2022
- type: ""
1757
+ contacts: {
1758
+ name: "",
1759
+ description: "",
1760
+ status: "Ready",
1761
+ email: "",
1762
+ phone: "",
1763
+ role: "",
1764
+ linkedinUrl: "",
1765
+ twitterUrl: "",
1766
+ client: "",
1767
+ engagements: ""
2023
1768
  },
2024
1769
  engagements: {
2025
1770
  name: "",
@@ -2029,48 +1774,52 @@ var defaults = {
2029
1774
  client: "",
2030
1775
  contact: ""
2031
1776
  },
2032
- pools: {
1777
+ campaigns: {
2033
1778
  name: "",
2034
1779
  description: "",
2035
- status: "Ready"
1780
+ status: "Ready",
1781
+ priority: "Medium",
1782
+ startDate: null,
1783
+ endDate: null,
1784
+ campaignType: "Email",
1785
+ budgetedCost: 0,
1786
+ expectedRevenue: 0,
1787
+ actualCost: 0,
1788
+ numbersSent: 0,
1789
+ expectedResponse: "",
1790
+ accountOwner: "",
1791
+ leads: "",
1792
+ deals: ""
2036
1793
  },
2037
- products: {
1794
+ leads: {
2038
1795
  name: "",
2039
- description: null,
1796
+ description: "",
2040
1797
  status: "Ready",
2041
- productType: "service",
2042
- client: "",
2043
- inventory: "",
1798
+ leadType: "AttemtpedToContact",
1799
+ source: "Advertisement",
1800
+ amount: 0,
1801
+ projectedClosingDate: null,
1802
+ expectedRevenue: 0,
1803
+ probability: 0,
1804
+ nextStep: "",
2044
1805
  accountOwner: "",
2045
- active: true,
2046
- shippable: false,
2047
- statementDescriptor: "",
2048
- taxCode: null,
2049
- unitLabel: null,
2050
- url: ""
2051
- },
2052
- prices: {
2053
- active: true,
2054
- unitAmount: 0,
2055
- unitAmountDecimal: null,
2056
- lookupKey: "",
2057
- type: "",
2058
- taxBehavior: "unspecified",
2059
- currency: "usd",
2060
- billingScheme: "",
2061
- recurring: {
2062
- intervalCount: 0,
2063
- interval: "",
2064
- aggregateUsage: "",
2065
- usageType: "",
2066
- trialPeriodDays: 0
2067
- }
1806
+ client: "",
1807
+ campaign: ""
2068
1808
  },
2069
- packageDimensions: {
2070
- height: 0,
2071
- length: 0,
2072
- weight: 0,
2073
- width: 0
1809
+ deals: {
1810
+ name: "",
1811
+ description: "",
1812
+ status: "Ready",
1813
+ dealType: "New",
1814
+ source: "Advertisement",
1815
+ amount: 0,
1816
+ closingDate: null,
1817
+ expectedRevenue: 0,
1818
+ probability: 0,
1819
+ nextStep: "",
1820
+ accountOwner: "",
1821
+ client: "",
1822
+ campaign: ""
2074
1823
  },
2075
1824
  subscriptions: {
2076
1825
  name: "",
@@ -2100,26 +1849,12 @@ var defaults = {
2100
1849
  },
2101
1850
  automaticTax: {
2102
1851
  enabled: false,
2103
- liability: {
2104
- account: "",
2105
- type: ""
2106
- },
1852
+ liability: { account: "", type: "" },
2107
1853
  status: ""
2108
1854
  },
2109
- pauseCollection: {
2110
- behavior: "",
2111
- resumesAt: null
2112
- },
2113
- cancellationDetails: {
2114
- comment: "",
2115
- feedback: "",
2116
- reason: ""
2117
- },
2118
- trialSettings: {
2119
- endBehavior: {
2120
- missingPaymentMethod: ""
2121
- }
2122
- },
1855
+ pauseCollection: { behavior: "", resumesAt: null },
1856
+ cancellationDetails: { comment: "", feedback: "", reason: "" },
1857
+ trialSettings: { endBehavior: { missingPaymentMethod: "" } },
2123
1858
  payments: {
2124
1859
  name: "",
2125
1860
  description: "",
@@ -2136,7 +1871,102 @@ var defaults = {
2136
1871
  receiptEmail: "",
2137
1872
  client: "",
2138
1873
  subscription: "",
2139
- invoice: ""
1874
+ invoice: "",
1875
+ automaticPaymentMethods: { allowRedirects: "never", enabled: false },
1876
+ amountDetails: {
1877
+ discountAmount: null,
1878
+ shipping: {
1879
+ amount: null,
1880
+ fromPostalCode: null,
1881
+ toPostalCode: null
1882
+ },
1883
+ tax: { totalTaxAmount: null },
1884
+ tip: { amount: null }
1885
+ }
1886
+ },
1887
+ paymentMethods: {
1888
+ name: "",
1889
+ description: "",
1890
+ status: "Ready",
1891
+ livemode: false
1892
+ },
1893
+ billingDetails: {
1894
+ address: {
1895
+ city: null,
1896
+ country: null,
1897
+ line1: null,
1898
+ line2: null,
1899
+ postalCode: null,
1900
+ state: null
1901
+ },
1902
+ email: null,
1903
+ name: "",
1904
+ phone: null
1905
+ },
1906
+ shipping: {
1907
+ address: {
1908
+ city: null,
1909
+ country: null,
1910
+ line1: null,
1911
+ line2: null,
1912
+ postalCode: null,
1913
+ state: null
1914
+ },
1915
+ carrier: "",
1916
+ name: "",
1917
+ phone: "",
1918
+ trackingNumber: ""
1919
+ },
1920
+ disputes: {
1921
+ name: "",
1922
+ description: "",
1923
+ status: "Ready",
1924
+ evidence: {
1925
+ accessActivityLog: null,
1926
+ billingAddress: null,
1927
+ cancellationPolicy: null,
1928
+ cancellationPolicyDisclosure: null,
1929
+ cancellationRebuttal: null,
1930
+ customerCommunication: null,
1931
+ customerEmailAddress: null,
1932
+ customerName: null,
1933
+ customerPurchaseIp: null,
1934
+ customerSignature: null,
1935
+ duplicateChargeDocumentation: null,
1936
+ duplicateChargeExplanation: null,
1937
+ duplicateChargeId: null,
1938
+ productDescription: null,
1939
+ receipt: null,
1940
+ refundPolicy: null,
1941
+ refundPolicyDisclosure: null,
1942
+ refundRefusalExplanation: null,
1943
+ serviceDate: null,
1944
+ serviceDocumentation: null,
1945
+ shippingAddress: null,
1946
+ shippingCarrier: null,
1947
+ shippingDate: null,
1948
+ shippingDocumentation: null,
1949
+ shippingTrackingNumber: null,
1950
+ uncategorizedFile: null,
1951
+ uncategorizedText: null
1952
+ },
1953
+ evidenceDetails: {
1954
+ dueBy: null,
1955
+ hasEvidence: false,
1956
+ pastDue: false,
1957
+ submissionCount: 0
1958
+ }
1959
+ },
1960
+ refunds: { name: "", description: "", status: "Ready" },
1961
+ pools: { name: "", description: "", status: "Ready" },
1962
+ issuer: { account: "", type: "" },
1963
+ activties: { label: "", value: "", modelName: "", path: "" },
1964
+ schema: {
1965
+ deleted: false,
1966
+ selected: false,
1967
+ key: "",
1968
+ type: "",
1969
+ options: []
2140
1970
  },
2141
1971
  reports: {
2142
1972
  label: "",
@@ -2182,31 +2012,7 @@ var defaults = {
2182
2012
  latitude: 37.7749,
2183
2013
  longitude: -122.4194
2184
2014
  },
2185
- schema: {
2186
- deleted: false,
2187
- selected: false,
2188
- key: "",
2189
- type: "",
2190
- options: []
2191
- },
2192
- comments: {
2193
- label: ""
2194
- },
2195
- tasks: {
2196
- name: "",
2197
- description: "",
2198
- status: "Ready",
2199
- priority: "Medium",
2200
- dueDate: null,
2201
- reminder: false,
2202
- reminderDate: null,
2203
- reminderTime: "",
2204
- repeat: false,
2205
- repeatDate: null,
2206
- repeatTime: "",
2207
- client: "",
2208
- assignee: ""
2209
- },
2015
+ comments: { label: "" },
2210
2016
  integrations: {
2211
2017
  name: "",
2212
2018
  title: "",
@@ -2223,16 +2029,8 @@ var defaults = {
2223
2029
  exportBridge: false,
2224
2030
  dynamicBridge: false
2225
2031
  },
2226
- operations: {
2227
- label: "",
2228
- description: "",
2229
- star: false
2230
- },
2231
- prompts: {
2232
- label: "",
2233
- description: "",
2234
- active: false
2235
- }
2032
+ operations: { label: "", description: "", star: false },
2033
+ prompts: { label: "", description: "", active: false }
2236
2034
  };
2237
2035
  var defaults_default = defaults;
2238
2036
 
@@ -2268,7 +2066,8 @@ var defaultsWithTypes = {
2268
2066
  description: { default: "", type: "String" },
2269
2067
  status: { default: "Ready", type: "String" },
2270
2068
  email: { default: "", type: "String" },
2271
- contactName: { default: "", type: "String" },
2069
+ individualName: { default: "", type: "String" },
2070
+ businessName: { default: "", type: "String" },
2272
2071
  phone: { default: "", type: "PhoneNumber" },
2273
2072
  accountNumber: { default: "", type: "String" },
2274
2073
  invoicePrefix: { default: "", type: "String" },
@@ -2669,7 +2468,9 @@ var defaultsWithTypes_default = defaultsWithTypes;
2669
2468
  action,
2670
2469
  automaticTaxStatus,
2671
2470
  billingReason,
2471
+ billingScheme,
2672
2472
  camelCaseToWords,
2473
+ cancellationReason,
2673
2474
  capitalizeSentence,
2674
2475
  captureMethod,
2675
2476
  chatType,
@@ -2681,6 +2482,8 @@ var defaultsWithTypes_default = defaultsWithTypes;
2681
2482
  customerType,
2682
2483
  defaults,
2683
2484
  defaultsWithTypes,
2485
+ disputeReason,
2486
+ disputeStatus,
2684
2487
  formatPhoneNumber,
2685
2488
  getRandomArbitrary,
2686
2489
  grabAge,
@@ -2692,15 +2495,25 @@ var defaultsWithTypes_default = defaultsWithTypes;
2692
2495
  openInNewTab,
2693
2496
  operationType,
2694
2497
  organizationFilterType,
2498
+ paymentAllowRedirect,
2695
2499
  paymentCancellationReason,
2500
+ paymentFutureUsage,
2501
+ paymentMethodAllowReDisplay,
2502
+ paymentMethodType,
2696
2503
  paymentStatus,
2697
2504
  prettifyString,
2505
+ priceType,
2698
2506
  productType,
2507
+ refundFailureReason,
2508
+ refundPendingReason,
2509
+ refundReason,
2510
+ refundStatus,
2699
2511
  snakeToPretty,
2700
2512
  status,
2701
2513
  stripHtmlTags,
2702
- subscriptionCancellationReason,
2514
+ taxBehavior,
2703
2515
  taxExempt,
2516
+ tiersMode,
2704
2517
  toCurrencyValue,
2705
2518
  userRole,
2706
2519
  userSource,