@bpinternal/const 0.15.0 → 0.16.0

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.
@@ -15,7 +15,7 @@ export declare const plans: {
15
15
  };
16
16
  readonly features: {
17
17
  readonly incoming_messages_events: 500;
18
- readonly integration_spend: 0;
18
+ readonly integration_spend: 5000000000;
19
19
  readonly table_rows: 1000;
20
20
  readonly bot_count: 1;
21
21
  readonly collaborator_count: 1;
@@ -32,7 +32,7 @@ exports.plans = {
32
32
  },
33
33
  features: {
34
34
  incoming_messages_events: 500,
35
- integration_spend: 0,
35
+ integration_spend: 5_000_000_000,
36
36
  table_rows: 1000,
37
37
  bot_count: 1,
38
38
  collaborator_count: 1,
@@ -285,7 +285,7 @@ export declare const meterSchema: z.ZodObject<{
285
285
  metadata?: Record<string, string> | undefined;
286
286
  }>>;
287
287
  providerProductId: string;
288
- meterType: "payAsYouGo" | "creditGrant";
288
+ meterType: "creditGrant" | "payAsYouGo";
289
289
  providerMeterId: string;
290
290
  metadata?: Record<string, string> | undefined;
291
291
  defaultAggregation?: {
@@ -310,7 +310,7 @@ export declare const meterSchema: z.ZodObject<{
310
310
  metadata?: Record<string, string> | undefined;
311
311
  }>>;
312
312
  providerProductId: string;
313
- meterType: "payAsYouGo" | "creditGrant";
313
+ meterType: "creditGrant" | "payAsYouGo";
314
314
  providerMeterId: string;
315
315
  metadata?: Record<string, string> | undefined;
316
316
  defaultAggregation?: {
@@ -558,7 +558,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
558
558
  metadata?: Record<string, string> | undefined;
559
559
  }>>;
560
560
  providerProductId: string;
561
- meterType: "payAsYouGo" | "creditGrant";
561
+ meterType: "creditGrant" | "payAsYouGo";
562
562
  providerMeterId: string;
563
563
  metadata?: Record<string, string> | undefined;
564
564
  defaultAggregation?: {
@@ -583,7 +583,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
583
583
  metadata?: Record<string, string> | undefined;
584
584
  }>>;
585
585
  providerProductId: string;
586
- meterType: "payAsYouGo" | "creditGrant";
586
+ meterType: "creditGrant" | "payAsYouGo";
587
587
  providerMeterId: string;
588
588
  metadata?: Record<string, string> | undefined;
589
589
  defaultAggregation?: {
@@ -651,7 +651,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
651
651
  metadata?: Record<string, string> | undefined;
652
652
  }>>;
653
653
  providerProductId: string;
654
- meterType: "payAsYouGo" | "creditGrant";
654
+ meterType: "creditGrant" | "payAsYouGo";
655
655
  providerMeterId: string;
656
656
  metadata?: Record<string, string> | undefined;
657
657
  defaultAggregation?: {
@@ -719,7 +719,7 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
719
719
  metadata?: Record<string, string> | undefined;
720
720
  }>>;
721
721
  providerProductId: string;
722
- meterType: "payAsYouGo" | "creditGrant";
722
+ meterType: "creditGrant" | "payAsYouGo";
723
723
  providerMeterId: string;
724
724
  metadata?: Record<string, string> | undefined;
725
725
  defaultAggregation?: {
@@ -970,7 +970,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
970
970
  metadata?: Record<string, string> | undefined;
971
971
  }>>;
972
972
  providerProductId: string;
973
- meterType: "payAsYouGo" | "creditGrant";
973
+ meterType: "creditGrant" | "payAsYouGo";
974
974
  providerMeterId: string;
975
975
  metadata?: Record<string, string> | undefined;
976
976
  defaultAggregation?: {
@@ -995,7 +995,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
995
995
  metadata?: Record<string, string> | undefined;
996
996
  }>>;
997
997
  providerProductId: string;
998
- meterType: "payAsYouGo" | "creditGrant";
998
+ meterType: "creditGrant" | "payAsYouGo";
999
999
  providerMeterId: string;
1000
1000
  metadata?: Record<string, string> | undefined;
1001
1001
  defaultAggregation?: {
@@ -1063,7 +1063,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1063
1063
  metadata?: Record<string, string> | undefined;
1064
1064
  }>>;
1065
1065
  providerProductId: string;
1066
- meterType: "payAsYouGo" | "creditGrant";
1066
+ meterType: "creditGrant" | "payAsYouGo";
1067
1067
  providerMeterId: string;
1068
1068
  metadata?: Record<string, string> | undefined;
1069
1069
  defaultAggregation?: {
@@ -1131,7 +1131,7 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1131
1131
  metadata?: Record<string, string> | undefined;
1132
1132
  }>>;
1133
1133
  providerProductId: string;
1134
- meterType: "payAsYouGo" | "creditGrant";
1134
+ meterType: "creditGrant" | "payAsYouGo";
1135
1135
  providerMeterId: string;
1136
1136
  metadata?: Record<string, string> | undefined;
1137
1137
  defaultAggregation?: {
@@ -20,7 +20,7 @@ export declare const billingConfig: {
20
20
  };
21
21
  readonly features: {
22
22
  readonly incoming_messages_events: 500;
23
- readonly integration_spend: 0;
23
+ readonly integration_spend: 5000000000;
24
24
  readonly table_rows: 1000;
25
25
  readonly bot_count: 1;
26
26
  readonly collaborator_count: 1;
@@ -418,7 +418,7 @@ export declare const billingDefinitions: {
418
418
  };
419
419
  readonly features: {
420
420
  readonly incoming_messages_events: 500;
421
- readonly integration_spend: 0;
421
+ readonly integration_spend: 5000000000;
422
422
  readonly table_rows: 1000;
423
423
  readonly bot_count: 1;
424
424
  readonly collaborator_count: 1;
@@ -42,10 +42,19 @@ export declare const prefixToObjectMap: {
42
42
  readonly table: "table";
43
43
  readonly tag: "tag";
44
44
  readonly task: "task";
45
+ readonly archrg: "autoRechargeSetting";
46
+ readonly archtx: "autoRechargeTransaction";
47
+ readonly crgrant: "creditGrant";
48
+ readonly job: "job";
49
+ readonly pcrgrant: "pendingCreditGrant";
50
+ readonly promo: "promoCode";
45
51
  readonly usage: "usage";
46
52
  readonly user: "user";
47
53
  readonly webhook: "webhook";
48
54
  readonly wkspace: "workspace";
55
+ readonly wksadd: "workspaceAddon";
56
+ readonly wksaddinst: "workspaceAddonAddition";
57
+ readonly wksplan: "workspacePlan";
49
58
  readonly wrkflow: "workflow";
50
59
  readonly wkspacepf: "workspacePreference";
51
60
  readonly trial: "trial";
@@ -90,11 +99,20 @@ export type StateId = Ids['StateId'];
90
99
  export type TableId = Ids['TableId'];
91
100
  export type TagId = Ids['TagId'];
92
101
  export type TaskId = Ids['TaskId'];
102
+ export type AutoRechargeSettingId = Ids['AutoRechargeSettingId'];
103
+ export type AutoRechargeTransactionId = Ids['AutoRechargeTransactionId'];
104
+ export type CreditGrantId = Ids['CreditGrantId'];
105
+ export type JobId = Ids['JobId'];
106
+ export type PendingCreditGrantId = Ids['PendingCreditGrantId'];
107
+ export type PromoCodeId = Ids['PromoCodeId'];
93
108
  export type UsageId = Ids['UsageId'];
94
109
  export type UserId = Ids['UserId'];
95
110
  export type WebhookId = Ids['WebhookId'];
96
111
  export type WorkflowId = Ids['WorkflowId'];
112
+ export type WorkspaceAddonId = Ids['WorkspaceAddonId'];
113
+ export type WorkspaceAddonAdditionId = Ids['WorkspaceAddonAdditionId'];
97
114
  export type WorkspaceId = Ids['WorkspaceId'];
115
+ export type WorkspacePlanId = Ids['WorkspacePlanId'];
98
116
  type Reverser<T extends Record<PropertyKey, PropertyKey>> = {
99
117
  [P in keyof T as T[P]]: P;
100
118
  };
package/dist/prefixes.js CHANGED
@@ -45,10 +45,19 @@ exports.prefixToObjectMap = {
45
45
  table: 'table',
46
46
  tag: 'tag',
47
47
  task: 'task',
48
+ archrg: 'autoRechargeSetting',
49
+ archtx: 'autoRechargeTransaction',
50
+ crgrant: 'creditGrant',
51
+ job: 'job',
52
+ pcrgrant: 'pendingCreditGrant',
53
+ promo: 'promoCode',
48
54
  usage: 'usage',
49
55
  user: 'user',
50
56
  webhook: 'webhook',
51
57
  wkspace: 'workspace',
58
+ wksadd: 'workspaceAddon',
59
+ wksaddinst: 'workspaceAddonAddition',
60
+ wksplan: 'workspacePlan',
52
61
  wrkflow: 'workflow',
53
62
  wkspacepf: 'workspacePreference',
54
63
  trial: 'trial',
@@ -97,11 +106,20 @@ exports.objectToPrefixMap = {
97
106
  table: 'table',
98
107
  tag: 'tag',
99
108
  task: 'task',
109
+ autoRechargeSetting: 'archrg',
110
+ autoRechargeTransaction: 'archtx',
111
+ creditGrant: 'crgrant',
112
+ job: 'job',
113
+ pendingCreditGrant: 'pcrgrant',
114
+ promoCode: 'promo',
100
115
  usage: 'usage',
101
116
  user: 'user',
102
117
  webhook: 'webhook',
103
118
  workflow: 'wrkflow',
104
119
  workspace: 'wkspace',
120
+ workspaceAddon: 'wksadd',
121
+ workspaceAddonAddition: 'wksaddinst',
122
+ workspacePlan: 'wksplan',
105
123
  workspacePreference: 'wkspacepf',
106
124
  trial: 'trial',
107
125
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [