@bpinternal/const 0.15.0 → 0.17.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,20 @@ 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";
51
+ readonly smgevt: "smaugEvent";
45
52
  readonly usage: "usage";
46
53
  readonly user: "user";
47
54
  readonly webhook: "webhook";
48
55
  readonly wkspace: "workspace";
56
+ readonly wksadd: "workspaceAddon";
57
+ readonly wksaddinst: "workspaceAddonAddition";
58
+ readonly wksplan: "workspacePlan";
49
59
  readonly wrkflow: "workflow";
50
60
  readonly wkspacepf: "workspacePreference";
51
61
  readonly trial: "trial";
@@ -90,11 +100,21 @@ export type StateId = Ids['StateId'];
90
100
  export type TableId = Ids['TableId'];
91
101
  export type TagId = Ids['TagId'];
92
102
  export type TaskId = Ids['TaskId'];
103
+ export type AutoRechargeSettingId = Ids['AutoRechargeSettingId'];
104
+ export type AutoRechargeTransactionId = Ids['AutoRechargeTransactionId'];
105
+ export type CreditGrantId = Ids['CreditGrantId'];
106
+ export type JobId = Ids['JobId'];
107
+ export type PendingCreditGrantId = Ids['PendingCreditGrantId'];
108
+ export type PromoCodeId = Ids['PromoCodeId'];
109
+ export type SmaugEventId = Ids['SmaugEventId'];
93
110
  export type UsageId = Ids['UsageId'];
94
111
  export type UserId = Ids['UserId'];
95
112
  export type WebhookId = Ids['WebhookId'];
96
113
  export type WorkflowId = Ids['WorkflowId'];
114
+ export type WorkspaceAddonId = Ids['WorkspaceAddonId'];
115
+ export type WorkspaceAddonAdditionId = Ids['WorkspaceAddonAdditionId'];
97
116
  export type WorkspaceId = Ids['WorkspaceId'];
117
+ export type WorkspacePlanId = Ids['WorkspacePlanId'];
98
118
  type Reverser<T extends Record<PropertyKey, PropertyKey>> = {
99
119
  [P in keyof T as T[P]]: P;
100
120
  };
package/dist/prefixes.js CHANGED
@@ -45,10 +45,20 @@ 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',
54
+ smgevt: 'smaugEvent',
48
55
  usage: 'usage',
49
56
  user: 'user',
50
57
  webhook: 'webhook',
51
58
  wkspace: 'workspace',
59
+ wksadd: 'workspaceAddon',
60
+ wksaddinst: 'workspaceAddonAddition',
61
+ wksplan: 'workspacePlan',
52
62
  wrkflow: 'workflow',
53
63
  wkspacepf: 'workspacePreference',
54
64
  trial: 'trial',
@@ -97,11 +107,21 @@ exports.objectToPrefixMap = {
97
107
  table: 'table',
98
108
  tag: 'tag',
99
109
  task: 'task',
110
+ autoRechargeSetting: 'archrg',
111
+ autoRechargeTransaction: 'archtx',
112
+ creditGrant: 'crgrant',
113
+ job: 'job',
114
+ pendingCreditGrant: 'pcrgrant',
115
+ promoCode: 'promo',
116
+ smaugEvent: 'smgevt',
100
117
  usage: 'usage',
101
118
  user: 'user',
102
119
  webhook: 'webhook',
103
120
  workflow: 'wrkflow',
104
121
  workspace: 'wkspace',
122
+ workspaceAddon: 'wksadd',
123
+ workspaceAddonAddition: 'wksaddinst',
124
+ workspacePlan: 'wksplan',
105
125
  workspacePreference: 'wkspacepf',
106
126
  trial: 'trial',
107
127
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
6
  "files": [