@verma-consulting/common-library 0.1.18 → 0.1.19

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
@@ -60,8 +60,8 @@ __export(index_exports, {
60
60
  constants: () => constants_default,
61
61
  currency: () => currency,
62
62
  customerType: () => customerType,
63
+ defaultTypes: () => defaultTypes_default,
63
64
  defaults: () => defaults_default,
64
- defaultsWithTypes: () => defaultsWithTypes_default,
65
65
  disputeReason: () => disputeReason,
66
66
  disputeStatus: () => disputeStatus,
67
67
  formatPhoneNumber: () => formatPhoneNumber,
@@ -2059,409 +2059,519 @@ var defaults = {
2059
2059
  };
2060
2060
  var defaults_default = defaults;
2061
2061
 
2062
- // src/defaultsWithTypes.ts
2063
- var defaultsWithTypes = {
2062
+ // src/defaultTypes.ts
2063
+ var defaultTypes = {
2064
+ organizations: {
2065
+ name: "String",
2066
+ website: "String",
2067
+ industry: "String",
2068
+ currency: "String",
2069
+ linkedinUrl: "String",
2070
+ facebookUrl: "String",
2071
+ twitterUrl: "String",
2072
+ angelUrl: "String",
2073
+ crunchbaseUrl: "String"
2074
+ },
2064
2075
  users: {
2065
- firstName: { default: "", type: "String" },
2066
- lastName: { default: "", type: "String" },
2067
- email: { default: "", type: "String" },
2068
- role: { default: "Employee", type: "String" },
2069
- status: { default: "Pending", type: "String" },
2070
- userName: { default: "", type: "String" },
2071
- jobTitle: { default: "", type: "String" },
2072
- password: { default: "", type: "String" },
2073
- dateOfBirth: { default: null, type: "Date" },
2074
- phone: { default: "", type: "String" },
2075
- permissions: { default: [], type: "LIST" },
2076
- avatar: { default: null, type: "String" },
2076
+ firstName: "String",
2077
+ lastName: "String",
2078
+ email: "String",
2079
+ role: "String",
2080
+ status: "String",
2081
+ userName: "String",
2082
+ jobTitle: "String",
2083
+ password: "String",
2084
+ dateOfBirth: "Date",
2085
+ phone: "String",
2086
+ permissions: "LIST",
2087
+ avatar: "String",
2077
2088
  notificationSettings: {
2078
- dailyReports: { default: false, type: "Boolean" },
2079
- dealsClosing: { default: false, type: "Boolean" },
2080
- deletionAlerts: { default: false, type: "Boolean" },
2081
- device: { default: "Do Not Notify", type: "String" }
2089
+ dailyReports: "Boolean",
2090
+ dealsClosing: "Boolean",
2091
+ deletionAlerts: "Boolean",
2092
+ device: "String"
2082
2093
  },
2083
2094
  platformSettings: {
2084
- mode: { default: "light", type: "String" },
2085
- language: { default: "english", type: "String" },
2086
- currency: { default: "usd", type: "String" }
2095
+ mode: "String",
2096
+ language: "String",
2097
+ currency: "String"
2087
2098
  }
2088
2099
  },
2089
2100
  clients: {
2090
- name: { default: "", type: "String" },
2091
- description: { default: "", type: "String" },
2092
- status: { default: "Ready", type: "String" },
2093
- email: { default: "", type: "String" },
2094
- individualName: { default: "", type: "String" },
2095
- businessName: { default: "", type: "String" },
2096
- phone: { default: "", type: "PhoneNumber" },
2097
- accountNumber: { default: "", type: "String" },
2098
- invoicePrefix: { default: "", type: "String" },
2099
- sicCode: { default: "", type: "String" },
2100
- clientType: { default: "Company", type: "String" },
2101
- currency: { default: "usd", type: "String" },
2102
- customerType: { default: "Trial", type: "String" },
2103
- industry: { default: "", type: "String" },
2104
- annualRevenue: { default: 0, type: "Int" },
2105
- balance: { default: 0, type: "Int" },
2106
- nextInvoiceSequence: { default: 0, type: "Int" },
2107
- taxExempt: { default: "null", type: "String" },
2108
- website: { default: "", type: "String" },
2109
- source: { default: "Advertisement", type: "String" },
2110
- logoUrl: { default: "", type: "String" },
2111
- linkedinUrl: { default: "", type: "String" },
2112
- facebookUrl: { default: "", type: "String" },
2113
- twitterUrl: { default: "", type: "String" },
2114
- angelUrl: { default: "", type: "String" },
2115
- crunchbaseUrl: { default: "", type: "String" },
2116
- accountOwner: { default: "", type: "OBJECT" },
2117
- contacts: { default: "", type: "LIST" },
2118
- deals: { default: "", type: "LIST" },
2119
- invoices: { default: "", type: "LIST" },
2120
- engagements: { default: "", type: "LIST" },
2121
- tasks: { default: "", type: "LIST" }
2122
- },
2123
- contacts: {
2124
- name: { default: "", type: "String" },
2125
- description: { default: "", type: "String" },
2126
- status: { default: "Ready", type: "String" },
2127
- email: { default: "", type: "String" },
2128
- phone: { default: "", type: "String" },
2129
- role: { default: "", type: "String" },
2130
- linkedinUrl: { default: "", type: "String" },
2131
- twitterUrl: { default: "", type: "String" },
2132
- client: { default: "", type: "OBJECT" },
2133
- engagements: { default: "", type: "LIST" }
2101
+ name: "String",
2102
+ description: "String",
2103
+ status: "String",
2104
+ email: "String",
2105
+ individualName: "String",
2106
+ businessName: "String",
2107
+ phone: "PhoneNumber",
2108
+ accountNumber: "String",
2109
+ invoicePrefix: "String",
2110
+ sicCode: "String",
2111
+ clientType: "String",
2112
+ currency: "String",
2113
+ customerType: "String",
2114
+ industry: "String",
2115
+ annualRevenue: "Int",
2116
+ balance: "Int",
2117
+ nextInvoiceSequence: "Int",
2118
+ taxExempt: "String",
2119
+ website: "String",
2120
+ source: "String",
2121
+ logoUrl: "String",
2122
+ linkedinUrl: "String",
2123
+ facebookUrl: "String",
2124
+ twitterUrl: "String",
2125
+ angelUrl: "String",
2126
+ crunchbaseUrl: "String",
2127
+ accountOwner: "OBJECT",
2128
+ contacts: "LIST",
2129
+ deals: "LIST",
2130
+ invoices: "LIST",
2131
+ engagements: "LIST",
2132
+ tasks: "LIST"
2134
2133
  },
2135
- inventories: {
2136
- name: { default: "", type: "String" },
2137
- description: { default: "", type: "String" },
2138
- status: { default: "Ready", type: "String" },
2139
- amount: { default: 0, type: "Int" },
2140
- quantity: { default: 0, type: "Int" }
2141
- },
2142
- organizations: {
2143
- name: { default: "", type: "String" },
2144
- website: { default: "", type: "String" },
2145
- industry: { default: "", type: "String" },
2146
- currency: { default: "usd", type: "String" },
2147
- linkedinUrl: { default: "", type: "String" },
2148
- facebookUrl: { default: "", type: "String" },
2149
- twitterUrl: { default: "", type: "String" },
2150
- angelUrl: { default: "", type: "String" },
2151
- crunchbaseUrl: { default: "", type: "String" }
2134
+ tasks: {
2135
+ name: "String",
2136
+ description: "String",
2137
+ status: "String",
2138
+ priority: "String",
2139
+ dueDate: "Date",
2140
+ reminder: "Boolean",
2141
+ reminderDate: "Date",
2142
+ reminderTime: "Time",
2143
+ repeat: "Boolean",
2144
+ repeatDate: "Date",
2145
+ repeatTime: "Time",
2146
+ client: "OBJECT",
2147
+ assignee: "OBJECT"
2152
2148
  },
2153
- activities: {
2154
- label: { default: "", type: "String" },
2155
- value: { default: "", type: "String" },
2156
- modelName: { default: "", type: "String" },
2157
- path: { default: "", type: "String" }
2149
+ products: {
2150
+ name: "String",
2151
+ description: "String",
2152
+ status: "String",
2153
+ productType: "String",
2154
+ client: "OBJECT",
2155
+ inventory: "OBJECT",
2156
+ accountOwner: "OBJECT",
2157
+ active: "Boolean",
2158
+ shippable: "Boolean",
2159
+ statementDescriptor: "String",
2160
+ taxCode: "String",
2161
+ unitLabel: "String",
2162
+ url: "String"
2158
2163
  },
2159
- leads: {
2160
- name: { default: "", type: "String" },
2161
- description: { default: "", type: "String" },
2162
- status: { default: "Ready", type: "String" },
2163
- leadType: { default: "AttemtpedToContact", type: "String" },
2164
- source: { default: "Advertisement", type: "String" },
2165
- amount: { default: 0, type: "Int" },
2166
- projectedClosingDate: { default: null, type: "Date" },
2167
- expectedRevenue: { default: 0, type: "Int" },
2168
- probability: { default: 0, type: "Int" },
2169
- nextStep: { default: "", type: "String" },
2170
- accountOwner: { default: "", type: "OBJECT" },
2171
- client: { default: "", type: "OBJECT" },
2172
- campaign: { default: "", type: "OBJECT" }
2164
+ packageDimensions: {
2165
+ height: "Float",
2166
+ length: "Float",
2167
+ weight: "Float",
2168
+ width: "Float"
2173
2169
  },
2174
- deals: {
2175
- name: { default: "", type: "String" },
2176
- description: { default: "", type: "String" },
2177
- status: { default: "Ready", type: "String" },
2178
- dealType: { default: "New", type: "String" },
2179
- source: { default: "Advertisement", type: "String" },
2180
- amount: { default: 0, type: "Int" },
2181
- closingDate: { default: null, type: "Date" },
2182
- expectedRevenue: { default: 0, type: "Int" },
2183
- probability: { default: 0, type: "Int" },
2184
- nextStep: { default: "", type: "String" },
2185
- accountOwner: { default: "", type: "OBJECT" },
2186
- client: { default: "", type: "OBJECT" },
2187
- campaign: { default: "", type: "OBJECT" }
2170
+ prices: {
2171
+ active: "Boolean",
2172
+ unitAmount: "Int",
2173
+ unitAmountDecimal: "Float",
2174
+ lookupKey: "String",
2175
+ type: "String",
2176
+ taxBehavior: "String",
2177
+ currency: "String",
2178
+ billingScheme: "String",
2179
+ recurring: {
2180
+ intervalCount: "Int",
2181
+ interval: "String",
2182
+ aggregateUsage: "String",
2183
+ usageType: "String",
2184
+ trialPeriodDays: "Int"
2185
+ }
2188
2186
  },
2189
- campaigns: {
2190
- name: { default: "", type: "String" },
2191
- description: { default: "", type: "String" },
2192
- status: { default: "Ready", type: "String" },
2193
- priority: { default: "Medium", type: "String" },
2194
- startDate: { default: null, type: "Date" },
2195
- endDate: { default: null, type: "Date" },
2196
- campaignType: { default: "Email", type: "String" },
2197
- budgetedCost: { default: 0, type: "Int" },
2198
- expectedRevenue: { default: 0, type: "Int" },
2199
- actualCost: { default: 0, type: "Int" },
2200
- numbersSent: { default: 0, type: "Int" },
2201
- expectedResponse: { default: "", type: "String" },
2202
- accountOwner: { default: "", type: "OBJECT" },
2203
- leads: { default: "", type: "OBJECT" },
2204
- deals: { default: "", type: "OBJECT" }
2187
+ inventories: {
2188
+ name: "String",
2189
+ description: "String",
2190
+ status: "String",
2191
+ amount: "Int",
2192
+ quantity: "Int"
2205
2193
  },
2206
2194
  invoices: {
2207
- name: { default: "", type: "String" },
2208
- description: { default: "", type: "String" },
2209
- footer: { default: "", type: "String" },
2210
- status: { default: "Ready", type: "String" },
2211
- currency: { default: "usd", type: "String" },
2212
- accountCountry: { default: "US", type: "String" },
2213
- statementDescriptor: { default: "", type: "String" },
2214
- dueDate: { default: null, type: "Date" },
2215
- nextPaymentAttempt: { default: null, type: "DateTime" },
2216
- effectiveAt: { default: null, type: "DateTime" },
2217
- amountDue: { default: 0, type: "Int" },
2218
- amountPaid: { default: 0, type: "Int" },
2219
- amountRemaining: { default: 0, type: "Int" },
2220
- amountShipping: { default: 0, type: "Int" },
2221
- attemptCount: { default: 0, type: "Int" },
2222
- startingBalance: { default: 0, type: "Int" },
2223
- endingBalance: { default: 0, type: "Int" },
2224
- subtotal: { default: 0, type: "Int" },
2225
- subtotalExcludingTax: { default: 0, type: "Int" },
2226
- totalExcludingTax: { default: 0, type: "Int" },
2227
- tax: { default: 0, type: "Int" },
2228
- postPaymentCreditNotesAmount: { default: 0, type: "Int" },
2229
- prePaymentCreditNotesAmount: { default: 0, type: "Int" },
2230
- daysUntilDue: { default: 0, type: "Int" },
2231
- attempted: { default: false, type: "Boolean" },
2232
- autoAdvance: { default: false, type: "Boolean" },
2233
- billingReason: { default: "manual", type: "String" },
2234
- collectionMethod: { default: "charge_automatically", type: "String" },
2235
- customerEmail: { default: "", type: "String" },
2236
- customerPhone: { default: "", type: "String" },
2237
- customerTaxExempt: { default: "null", type: "String" },
2238
- invoicePdf: { default: "", type: "String" },
2239
- lastFinalizationError: { default: "", type: "String" },
2240
- number: { default: null, type: "String" },
2241
- receiptNumber: { default: "", type: "String" },
2242
- livemode: { default: false, type: "Boolean" },
2243
- paid: { default: false, type: "Boolean" },
2244
- paidOutOfBand: { default: false, type: "Boolean" },
2245
- client: { default: "", type: "OBJECT" },
2246
- accountOwner: { default: "", type: "OBJECT" },
2247
- deal: { default: "", type: "OBJECT" }
2195
+ name: "String",
2196
+ description: "String",
2197
+ footer: "String",
2198
+ status: "String",
2199
+ currency: "String",
2200
+ accountCountry: "String",
2201
+ statementDescriptor: "String",
2202
+ dueDate: "Date",
2203
+ nextPaymentAttempt: "DateTime",
2204
+ effectiveAt: "DateTime",
2205
+ amountDue: "Int",
2206
+ amountPaid: "Int",
2207
+ amountRemaining: "Int",
2208
+ amountShipping: "Int",
2209
+ attemptCount: "Int",
2210
+ startingBalance: "Int",
2211
+ endingBalance: "Int",
2212
+ subtotal: "Int",
2213
+ subtotalExcludingTax: "Int",
2214
+ totalExcludingTax: "Int",
2215
+ tax: "Int",
2216
+ postPaymentCreditNotesAmount: "Int",
2217
+ prePaymentCreditNotesAmount: "Int",
2218
+ daysUntilDue: "Int",
2219
+ attempted: "Boolean",
2220
+ autoAdvance: "Boolean",
2221
+ billingReason: "String",
2222
+ collectionMethod: "String",
2223
+ customerEmail: "String",
2224
+ customerPhone: "String",
2225
+ customerTaxExempt: "String",
2226
+ invoicePdf: "String",
2227
+ lastFinalizationError: "String",
2228
+ number: "String",
2229
+ receiptNumber: "String",
2230
+ livemode: "Boolean",
2231
+ paid: "Boolean",
2232
+ paidOutOfBand: "Boolean",
2233
+ client: "OBJECT",
2234
+ accountOwner: "OBJECT",
2235
+ deal: "OBJECT"
2248
2236
  },
2249
- issuer: {
2250
- account: { default: "", type: "OBJECT" },
2251
- type: { default: "", type: "String" }
2237
+ contacts: {
2238
+ name: "String",
2239
+ description: "String",
2240
+ status: "String",
2241
+ email: "String",
2242
+ phone: "String",
2243
+ role: "String",
2244
+ linkedinUrl: "String",
2245
+ twitterUrl: "String",
2246
+ client: "OBJECT",
2247
+ engagements: "LIST"
2252
2248
  },
2253
2249
  engagements: {
2254
- name: { default: "", type: "String" },
2255
- description: { default: "", type: "String" },
2256
- status: { default: "Ready", type: "String" },
2257
- engagementDate: { default: null, type: "Date" },
2258
- client: { default: "", type: "OBJECT" },
2259
- contact: { default: "", type: "OBJECT" }
2260
- },
2261
- pools: {
2262
- name: { default: "", type: "String" },
2263
- description: { default: "", type: "String" },
2264
- status: { default: "Ready", type: "String" }
2250
+ name: "String",
2251
+ description: "String",
2252
+ status: "String",
2253
+ engagementDate: "Date",
2254
+ client: "OBJECT",
2255
+ contact: "OBJECT"
2265
2256
  },
2266
- products: {
2267
- name: { default: "", type: "String" },
2268
- description: { default: null, type: "String" },
2269
- status: { default: "Ready", type: "String" },
2270
- productType: { default: "service", type: "String" },
2271
- client: { default: "", type: "OBJECT" },
2272
- inventory: { default: "", type: "OBJECT" },
2273
- accountOwner: { default: "", type: "OBJECT" },
2274
- active: { default: true, type: "Boolean" },
2275
- shippable: { default: false, type: "Boolean" },
2276
- statementDescriptor: { default: "", type: "String" },
2277
- taxCode: { default: null, type: "String" },
2278
- unitLabel: { default: null, type: "String" },
2279
- url: { default: "", type: "String" }
2257
+ campaigns: {
2258
+ name: "String",
2259
+ description: "String",
2260
+ status: "String",
2261
+ priority: "String",
2262
+ startDate: "Date",
2263
+ endDate: "Date",
2264
+ campaignType: "String",
2265
+ budgetedCost: "Int",
2266
+ expectedRevenue: "Int",
2267
+ actualCost: "Int",
2268
+ numbersSent: "Int",
2269
+ expectedResponse: "String",
2270
+ accountOwner: "OBJECT",
2271
+ leads: "OBJECT",
2272
+ deals: "OBJECT"
2280
2273
  },
2281
- prices: {
2282
- active: { default: true, type: "Boolean" },
2283
- unitAmount: { default: 0, type: "Int" },
2284
- unitAmountDecimal: { default: null, type: "Float" },
2285
- lookupKey: { default: "", type: "String" },
2286
- type: { default: "", type: "String" },
2287
- taxBehavior: { default: "unspecified", type: "String" },
2288
- currency: { default: "usd", type: "String" },
2289
- billingScheme: { default: "", type: "String" },
2290
- recurring: {
2291
- intervalCount: { default: 0, type: "Int" },
2292
- interval: { default: "", type: "String" },
2293
- aggregateUsage: { default: "", type: "String" },
2294
- usageType: { default: "", type: "String" },
2295
- trialPeriodDays: { default: 0, type: "Int" }
2296
- }
2274
+ leads: {
2275
+ name: "String",
2276
+ description: "String",
2277
+ status: "String",
2278
+ leadType: "String",
2279
+ source: "String",
2280
+ amount: "Int",
2281
+ projectedClosingDate: "Date",
2282
+ expectedRevenue: "Int",
2283
+ probability: "Int",
2284
+ nextStep: "String",
2285
+ accountOwner: "OBJECT",
2286
+ client: "OBJECT",
2287
+ campaign: "OBJECT"
2297
2288
  },
2298
- packageDimensions: {
2299
- height: { default: 0, type: "Float" },
2300
- length: { default: 0, type: "Float" },
2301
- weight: { default: 0, type: "Float" },
2302
- width: { default: 0, type: "Float" }
2289
+ deals: {
2290
+ name: "String",
2291
+ description: "String",
2292
+ status: "String",
2293
+ dealType: "String",
2294
+ source: "String",
2295
+ amount: "Int",
2296
+ closingDate: "Date",
2297
+ expectedRevenue: "Int",
2298
+ probability: "Int",
2299
+ nextStep: "String",
2300
+ accountOwner: "OBJECT",
2301
+ client: "OBJECT",
2302
+ campaign: "OBJECT"
2303
2303
  },
2304
2304
  subscriptions: {
2305
- name: { default: "", type: "String" },
2306
- description: { default: null, type: "String" },
2307
- status: { default: "Ready", type: "String" },
2308
- trialStart: { default: null, type: "DateTime" },
2309
- trialEnd: { default: null, type: "DateTime" },
2310
- startDate: { default: null, type: "DateTime" },
2311
- endedAt: { default: null, type: "DateTime" },
2312
- currentPeriodStart: { default: null, type: "DateTime" },
2313
- currentPeriodEnd: { default: null, type: "DateTime" },
2314
- backdateStartDate: { default: null, type: "DateTime" },
2315
- billingCycleAnchor: { default: null, type: "DateTime" },
2316
- cancelAt: { default: null, type: "DateTime" },
2317
- canceledAt: { default: null, type: "DateTime" },
2318
- daysUntilDue: { default: 0, type: "Int" },
2319
- trialPeriodDays: { default: 0, type: "Int" },
2320
- applicationFeePercent: { default: 0, type: "Float" },
2321
- cancelAtPeriodEnd: { default: false, type: "Boolean" },
2322
- trialFromPlan: { default: false, type: "Boolean" },
2323
- offSession: { default: false, type: "Boolean" },
2324
- nextPendingInvoiceItemInvoice: { default: null, type: "String" },
2325
- collectionMethod: { default: "charge_automatically", type: "String" },
2326
- missingPaymentMethod: { default: "create_invoice", type: "String" },
2327
- client: { default: "", type: "OBJECT" },
2328
- deal: { default: "", type: "OBJECT" },
2329
- accountOwner: { default: "", type: "OBJECT" }
2305
+ name: "String",
2306
+ description: "String",
2307
+ status: "String",
2308
+ trialStart: "DateTime",
2309
+ trialEnd: "DateTime",
2310
+ startDate: "DateTime",
2311
+ endedAt: "DateTime",
2312
+ currentPeriodStart: "DateTime",
2313
+ currentPeriodEnd: "DateTime",
2314
+ backdateStartDate: "DateTime",
2315
+ billingCycleAnchor: "DateTime",
2316
+ cancelAt: "DateTime",
2317
+ canceledAt: "DateTime",
2318
+ daysUntilDue: "Int",
2319
+ trialPeriodDays: "Int",
2320
+ applicationFeePercent: "Float",
2321
+ cancelAtPeriodEnd: "Boolean",
2322
+ trialFromPlan: "Boolean",
2323
+ offSession: "Boolean",
2324
+ nextPendingInvoiceItemInvoice: "String",
2325
+ collectionMethod: "String",
2326
+ missingPaymentMethod: "String",
2327
+ client: "OBJECT",
2328
+ deal: "OBJECT",
2329
+ accountOwner: "OBJECT"
2330
2330
  },
2331
2331
  automaticTax: {
2332
- enabled: { default: false, type: "Boolean" },
2332
+ enabled: "Boolean",
2333
2333
  liability: {
2334
- account: { default: "", type: "OBJECT" },
2335
- type: { default: "", type: "String" }
2334
+ account: "OBJECT",
2335
+ type: "String"
2336
2336
  },
2337
- status: { default: "", type: "String" }
2337
+ status: "String"
2338
2338
  },
2339
2339
  pauseCollection: {
2340
- behavior: { default: "", type: "String" },
2341
- resumesAt: { default: null, type: "DateTime" }
2340
+ behavior: "String",
2341
+ resumesAt: "DateTime"
2342
2342
  },
2343
2343
  cancellationDetails: {
2344
- comment: { default: "", type: "String" },
2345
- feedback: { default: "", type: "String" },
2346
- reason: { default: "", type: "String" }
2344
+ comment: "String",
2345
+ feedback: "String",
2346
+ reason: "String"
2347
2347
  },
2348
2348
  trialSettings: {
2349
2349
  endBehavior: {
2350
- missingPaymentMethod: { default: "", type: "String" }
2350
+ missingPaymentMethod: "String"
2351
2351
  }
2352
2352
  },
2353
2353
  payments: {
2354
- name: { default: "", type: "String" },
2355
- description: { default: "", type: "String" },
2356
- status: { default: "Ready", type: "String" },
2357
- paymentStatus: { default: "requires_payment_method", type: "String" },
2358
- currency: { default: "usd", type: "String" },
2359
- amount: { default: 0, type: "Int" },
2360
- amountCapturable: { default: 0, type: "Int" },
2361
- amountReceived: { default: 0, type: "Int" },
2362
- applicationFeeAmount: { default: 0, type: "Int" },
2363
- statementDescriptor: { default: "", type: "String" },
2364
- statementDescriptorSuffix: { default: "", type: "String" },
2365
- livemode: { default: false, type: "Boolean" },
2366
- receiptEmail: { default: "", type: "String" },
2367
- client: { default: "", type: "OBJECT" },
2368
- subscription: { default: "", type: "OBJECT" },
2369
- invoice: { default: "", type: "OBJECT" }
2354
+ name: "String",
2355
+ description: "String",
2356
+ status: "String",
2357
+ paymentStatus: "String",
2358
+ currency: "String",
2359
+ amount: "Int",
2360
+ amountCapturable: "Int",
2361
+ amountReceived: "Int",
2362
+ applicationFeeAmount: "Int",
2363
+ statementDescriptor: "String",
2364
+ statementDescriptorSuffix: "String",
2365
+ livemode: "Boolean",
2366
+ receiptEmail: "String",
2367
+ client: "OBJECT",
2368
+ subscription: "OBJECT",
2369
+ invoice: "OBJECT",
2370
+ automatic_payment_methods: {
2371
+ allow_redirects: "String",
2372
+ enabled: "Boolean"
2373
+ },
2374
+ amount_details: {
2375
+ discount_amount: "String",
2376
+ shipping: {
2377
+ amount: "String",
2378
+ from_postal_code: "String",
2379
+ to_postal_code: "String"
2380
+ },
2381
+ tax: { total_tax_amount: "Int" },
2382
+ tip: { amount: "Int" }
2383
+ }
2384
+ },
2385
+ paymentMethods: {
2386
+ name: "String",
2387
+ description: "String",
2388
+ status: "String",
2389
+ paymentMethodType: "String",
2390
+ allowRedisplay: "String",
2391
+ livemode: "Boolean"
2392
+ },
2393
+ billingDetails: {
2394
+ address: {
2395
+ city: "String",
2396
+ country: "String",
2397
+ line1: "String",
2398
+ line2: "String",
2399
+ postal_code: "String",
2400
+ state: "String"
2401
+ },
2402
+ email: "String",
2403
+ name: "String",
2404
+ phone: "String"
2405
+ },
2406
+ shipping: {
2407
+ address: {
2408
+ city: "String",
2409
+ country: "String",
2410
+ line1: "String",
2411
+ line2: "String",
2412
+ postal_code: "String",
2413
+ state: "String"
2414
+ },
2415
+ carrier: "String",
2416
+ name: "String",
2417
+ phone: "String",
2418
+ tracking_number: "String"
2419
+ },
2420
+ refunds: {
2421
+ name: "String",
2422
+ description: "String",
2423
+ status: "String",
2424
+ currency: "String",
2425
+ instructionsEmail: "String",
2426
+ receiptNumber: "String",
2427
+ refundStatus: "String",
2428
+ reason: "String",
2429
+ pendingReason: "String",
2430
+ failureReason: "String",
2431
+ sourceTransferReversal: "String",
2432
+ transferReversal: "String",
2433
+ amount: "Int"
2434
+ },
2435
+ disputes: {
2436
+ name: "String",
2437
+ description: "String",
2438
+ status: "String",
2439
+ currency: "String",
2440
+ disputeStatus: "String",
2441
+ reason: "String",
2442
+ amount: "Int",
2443
+ isChargeRefundable: "Boolean",
2444
+ livemode: "Boolean",
2445
+ evidence: {
2446
+ access_activity_log: "String",
2447
+ billing_address: "String",
2448
+ cancellation_policy: "String",
2449
+ cancellation_policy_disclosure: "String",
2450
+ cancellation_rebuttal: "String",
2451
+ customer_communication: "String",
2452
+ customer_email_address: "String",
2453
+ customer_name: "String",
2454
+ customer_purchase_ip: "String",
2455
+ customer_signature: "String",
2456
+ duplicate_charge_documentation: "String",
2457
+ duplicate_charge_explanation: "String",
2458
+ duplicate_charge_id: "String",
2459
+ product_description: "String",
2460
+ receipt: "String",
2461
+ refund_policy: "String",
2462
+ refund_policy_disclosure: "String",
2463
+ refund_refusal_explanation: "String",
2464
+ service_date: "String",
2465
+ service_documentation: "String",
2466
+ shipping_address: "String",
2467
+ shipping_carrier: "String",
2468
+ shipping_date: "String",
2469
+ shipping_documentation: "String",
2470
+ shipping_tracking_number: "String",
2471
+ uncategorized_file: "String",
2472
+ uncategorized_text: "String"
2473
+ },
2474
+ evidenceDetails: {
2475
+ due_by: "DateTime",
2476
+ has_evidence: "Boolean",
2477
+ past_due: "Boolean",
2478
+ submission_count: "Int"
2479
+ }
2480
+ },
2481
+ pools: {
2482
+ name: "String",
2483
+ description: "String",
2484
+ status: "String"
2485
+ },
2486
+ issuer: {
2487
+ account: "OBJECT",
2488
+ type: "String"
2489
+ },
2490
+ activities: {
2491
+ label: "String",
2492
+ value: "String",
2493
+ modelName: "String",
2494
+ path: "String"
2370
2495
  },
2371
2496
  reports: {
2372
- label: { default: "", type: "String" },
2373
- star: { default: false, type: "Boolean" },
2374
- chartType: { default: "line", type: "String" },
2375
- frequency: { default: "Annually", type: "String" },
2376
- frequencyField: { default: "createdAt", type: "String" },
2377
- modelName: { default: "", type: "String" },
2378
- fieldName: { default: "", type: "String" },
2379
- operationType: { default: "Count", type: "String" },
2380
- calculation: { default: "Empty", type: "String" },
2381
- calculationValue: { default: "", type: "String" }
2497
+ label: "String",
2498
+ star: "Boolean",
2499
+ chartType: "String",
2500
+ frequency: "String",
2501
+ frequencyField: "String",
2502
+ modelName: "String",
2503
+ fieldName: "String",
2504
+ operationType: "String",
2505
+ calculation: "String",
2506
+ calculationValue: "String"
2382
2507
  },
2383
2508
  lists: {
2384
- label: { default: "", type: "String" },
2385
- star: { default: false, type: "Boolean" },
2386
- dynamic: { default: false, type: "Boolean" },
2387
- modelName: { default: "", type: "String" },
2388
- fieldName: { default: "", type: "String" },
2389
- calculation: { default: "Empty", type: "String" },
2390
- calculationValue: { default: "", type: "String" }
2509
+ label: "String",
2510
+ star: "Boolean",
2511
+ dynamic: "Boolean",
2512
+ modelName: "String",
2513
+ fieldName: "String",
2514
+ calculation: "String",
2515
+ calculationValue: "String"
2391
2516
  },
2392
2517
  statistics: {
2393
- label: { default: "", type: "String" },
2394
- star: { default: false, type: "Boolean" },
2395
- modelName: { default: "", type: "String" },
2396
- fieldName: { default: "", type: "String" },
2397
- operationType: { default: "Count", type: "String" },
2398
- calculation: { default: "Empty", type: "String" },
2399
- calculationValue: { default: "", type: "String" }
2518
+ label: "String",
2519
+ star: "Boolean",
2520
+ modelName: "String",
2521
+ fieldName: "String",
2522
+ operationType: "String",
2523
+ calculation: "String",
2524
+ calculationValue: "String"
2400
2525
  },
2401
2526
  address: {
2402
- streetNumber: { default: "", type: "String" },
2403
- streetName: { default: "", type: "String" },
2404
- city: { default: "", type: "String" },
2405
- state: { default: "", type: "String" },
2406
- country: { default: "", type: "String" },
2407
- countryCode: { default: "", type: "String" },
2408
- postalCode: { default: "", type: "String" },
2409
- latitude: { default: 37.7749, type: "Float" },
2410
- longitude: { default: -122.4194, type: "Float" }
2527
+ streetNumber: "String",
2528
+ streetName: "String",
2529
+ city: "String",
2530
+ state: "String",
2531
+ country: "String",
2532
+ countryCode: "String",
2533
+ postalCode: "String",
2534
+ latitude: "Float",
2535
+ longitude: "Float"
2411
2536
  },
2412
2537
  schema: {
2413
- deleted: { default: false, type: "Boolean" },
2414
- selected: { default: false, type: "Boolean" },
2415
- key: { default: "", type: "String" },
2416
- type: { default: "", type: "String" },
2417
- options: { default: [], type: "LIST" }
2538
+ deleted: "Boolean",
2539
+ selected: "Boolean",
2540
+ key: "String",
2541
+ type: "String",
2542
+ options: "LIST"
2418
2543
  },
2419
2544
  comments: {
2420
- label: { default: "", type: "String" }
2421
- },
2422
- tasks: {
2423
- name: { default: "", type: "String" },
2424
- description: { default: "", type: "String" },
2425
- status: { default: "Ready", type: "String" },
2426
- priority: { default: "Medium", type: "String" },
2427
- dueDate: { default: null, type: "Date" },
2428
- reminder: { default: false, type: "Boolean" },
2429
- reminderDate: { default: null, type: "Date" },
2430
- reminderTime: { default: "", type: "Time" },
2431
- repeat: { default: false, type: "Boolean" },
2432
- repeatDate: { default: null, type: "Date" },
2433
- repeatTime: { default: "", type: "Time" },
2434
- client: { default: "", type: "OBJECT" },
2435
- assignee: { default: "", type: "OBJECT" }
2545
+ label: "String"
2436
2546
  },
2437
2547
  integrations: {
2438
- name: { default: "", type: "String" },
2439
- title: { default: "", type: "String" },
2440
- description: { default: "", type: "String" },
2441
- category: { default: "", type: "String" },
2442
- key: { default: "", type: "String" },
2443
- secret: { default: "", type: "String" },
2444
- logo: { default: "", type: "String" },
2445
- clientEmail: { default: "", type: "String" },
2446
- customerId: { default: "", type: "String" },
2447
- channelId: { default: "", type: "String" },
2448
- active: { default: false, type: "Boolean" },
2449
- importBridge: { default: false, type: "Boolean" },
2450
- exportBridge: { default: false, type: "Boolean" },
2451
- dynamicBridge: { default: false, type: "Boolean" }
2548
+ name: "String",
2549
+ title: "String",
2550
+ description: "String",
2551
+ category: "String",
2552
+ key: "String",
2553
+ secret: "String",
2554
+ logo: "String",
2555
+ clientEmail: "String",
2556
+ customerId: "String",
2557
+ channelId: "String",
2558
+ active: "Boolean",
2559
+ importBridge: "Boolean",
2560
+ exportBridge: "Boolean",
2561
+ dynamicBridge: "Boolean"
2452
2562
  },
2453
2563
  operations: {
2454
- label: { default: "", type: "String" },
2455
- description: { default: "", type: "String" },
2456
- star: { default: false, type: "Boolean" }
2564
+ label: "String",
2565
+ description: "String",
2566
+ star: "Boolean"
2457
2567
  },
2458
2568
  prompts: {
2459
- label: { default: "", type: "String" },
2460
- description: { default: "", type: "String" },
2461
- active: { default: false, type: "Boolean" }
2569
+ label: "String",
2570
+ description: "String",
2571
+ active: "Boolean"
2462
2572
  }
2463
2573
  };
2464
- var defaultsWithTypes_default = defaultsWithTypes;
2574
+ var defaultTypes_default = defaultTypes;
2465
2575
  // Annotate the CommonJS export names for ESM import in node:
2466
2576
  0 && (module.exports = {
2467
2577
  AppMode,
@@ -2504,8 +2614,8 @@ var defaultsWithTypes_default = defaultsWithTypes;
2504
2614
  constants,
2505
2615
  currency,
2506
2616
  customerType,
2617
+ defaultTypes,
2507
2618
  defaults,
2508
- defaultsWithTypes,
2509
2619
  disputeReason,
2510
2620
  disputeStatus,
2511
2621
  formatPhoneNumber,