@bpinternal/const 0.0.11 → 0.0.13
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.cjs +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +2 -2
- package/src/prefixes.ts +10 -3
package/dist/index.cjs
CHANGED
|
@@ -110,6 +110,7 @@ var prefixToObjectMap = {
|
|
|
110
110
|
audit: "audit",
|
|
111
111
|
bak: "botApiKey",
|
|
112
112
|
bot: "bot",
|
|
113
|
+
devbot: "devBot",
|
|
113
114
|
card: "card",
|
|
114
115
|
cfg: "configuration",
|
|
115
116
|
channel: "channel",
|
|
@@ -120,6 +121,7 @@ var prefixToObjectMap = {
|
|
|
120
121
|
iak: "integrationApiKey",
|
|
121
122
|
int: "integration",
|
|
122
123
|
intver: "integrationVersion",
|
|
124
|
+
devint: "devIntegration",
|
|
123
125
|
iss: "issue",
|
|
124
126
|
issevt: "issueEvent",
|
|
125
127
|
kb: "knowledgeBase",
|
|
@@ -132,6 +134,7 @@ var prefixToObjectMap = {
|
|
|
132
134
|
recevt: "recurringEvent",
|
|
133
135
|
sandbox: "sandbox",
|
|
134
136
|
schema: "schema",
|
|
137
|
+
script: "script",
|
|
135
138
|
state: "state",
|
|
136
139
|
table: "table",
|
|
137
140
|
tag: "tag",
|
|
@@ -145,6 +148,7 @@ var objectToPrefixMap = {
|
|
|
145
148
|
analytics: "anlytic",
|
|
146
149
|
audit: "audit",
|
|
147
150
|
bot: "bot",
|
|
151
|
+
devBot: "devbot",
|
|
148
152
|
botApiKey: "bak",
|
|
149
153
|
card: "card",
|
|
150
154
|
channel: "channel",
|
|
@@ -154,8 +158,9 @@ var objectToPrefixMap = {
|
|
|
154
158
|
file: "file",
|
|
155
159
|
flow: "flow",
|
|
156
160
|
integration: "int",
|
|
157
|
-
integrationVersion: "intver",
|
|
158
161
|
integrationApiKey: "iak",
|
|
162
|
+
integrationVersion: "intver",
|
|
163
|
+
devIntegration: "devint",
|
|
159
164
|
issue: "iss",
|
|
160
165
|
issueEvent: "issevt",
|
|
161
166
|
knowledgeBase: "kb",
|
|
@@ -168,6 +173,7 @@ var objectToPrefixMap = {
|
|
|
168
173
|
recurringEvent: "recevt",
|
|
169
174
|
sandbox: "sandbox",
|
|
170
175
|
schema: "schema",
|
|
176
|
+
script: "script",
|
|
171
177
|
state: "state",
|
|
172
178
|
table: "table",
|
|
173
179
|
tag: "tag",
|
package/dist/index.mjs
CHANGED
|
@@ -80,6 +80,7 @@ var prefixToObjectMap = {
|
|
|
80
80
|
audit: "audit",
|
|
81
81
|
bak: "botApiKey",
|
|
82
82
|
bot: "bot",
|
|
83
|
+
devbot: "devBot",
|
|
83
84
|
card: "card",
|
|
84
85
|
cfg: "configuration",
|
|
85
86
|
channel: "channel",
|
|
@@ -90,6 +91,7 @@ var prefixToObjectMap = {
|
|
|
90
91
|
iak: "integrationApiKey",
|
|
91
92
|
int: "integration",
|
|
92
93
|
intver: "integrationVersion",
|
|
94
|
+
devint: "devIntegration",
|
|
93
95
|
iss: "issue",
|
|
94
96
|
issevt: "issueEvent",
|
|
95
97
|
kb: "knowledgeBase",
|
|
@@ -102,6 +104,7 @@ var prefixToObjectMap = {
|
|
|
102
104
|
recevt: "recurringEvent",
|
|
103
105
|
sandbox: "sandbox",
|
|
104
106
|
schema: "schema",
|
|
107
|
+
script: "script",
|
|
105
108
|
state: "state",
|
|
106
109
|
table: "table",
|
|
107
110
|
tag: "tag",
|
|
@@ -115,6 +118,7 @@ var objectToPrefixMap = {
|
|
|
115
118
|
analytics: "anlytic",
|
|
116
119
|
audit: "audit",
|
|
117
120
|
bot: "bot",
|
|
121
|
+
devBot: "devbot",
|
|
118
122
|
botApiKey: "bak",
|
|
119
123
|
card: "card",
|
|
120
124
|
channel: "channel",
|
|
@@ -124,8 +128,9 @@ var objectToPrefixMap = {
|
|
|
124
128
|
file: "file",
|
|
125
129
|
flow: "flow",
|
|
126
130
|
integration: "int",
|
|
127
|
-
integrationVersion: "intver",
|
|
128
131
|
integrationApiKey: "iak",
|
|
132
|
+
integrationVersion: "intver",
|
|
133
|
+
devIntegration: "devint",
|
|
129
134
|
issue: "iss",
|
|
130
135
|
issueEvent: "issevt",
|
|
131
136
|
knowledgeBase: "kb",
|
|
@@ -138,6 +143,7 @@ var objectToPrefixMap = {
|
|
|
138
143
|
recurringEvent: "recevt",
|
|
139
144
|
sandbox: "sandbox",
|
|
140
145
|
schema: "schema",
|
|
146
|
+
script: "script",
|
|
141
147
|
state: "state",
|
|
142
148
|
table: "table",
|
|
143
149
|
tag: "tag",
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpinternal/const",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Constant utilities for Botpress",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.mjs",
|
|
7
7
|
"types": "./src/index.ts",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"type
|
|
10
|
+
"type:check": "tsc --noEmit",
|
|
11
11
|
"build:nodejs": "esbuild src/index.ts --bundle --platform=node --target=node16 --outfile=dist/index.cjs",
|
|
12
12
|
"build:browser": "esbuild src/index.ts --bundle --platform=browser --target=es2017 --format=esm --outfile=dist/index.mjs",
|
|
13
13
|
"build": "npm run build:nodejs && npm run build:browser",
|
package/src/prefixes.ts
CHANGED
|
@@ -4,6 +4,7 @@ export const prefixToObjectMap = {
|
|
|
4
4
|
audit: 'audit',
|
|
5
5
|
bak: 'botApiKey',
|
|
6
6
|
bot: 'bot',
|
|
7
|
+
devbot: 'devBot',
|
|
7
8
|
card: 'card',
|
|
8
9
|
cfg: 'configuration',
|
|
9
10
|
channel: 'channel',
|
|
@@ -14,6 +15,7 @@ export const prefixToObjectMap = {
|
|
|
14
15
|
iak: 'integrationApiKey',
|
|
15
16
|
int: 'integration',
|
|
16
17
|
intver: 'integrationVersion',
|
|
18
|
+
devint: 'devIntegration',
|
|
17
19
|
iss: 'issue',
|
|
18
20
|
issevt: 'issueEvent',
|
|
19
21
|
kb: 'knowledgeBase',
|
|
@@ -26,6 +28,7 @@ export const prefixToObjectMap = {
|
|
|
26
28
|
recevt: 'recurringEvent',
|
|
27
29
|
sandbox: 'sandbox',
|
|
28
30
|
schema: 'schema',
|
|
31
|
+
script: 'script',
|
|
29
32
|
state: 'state',
|
|
30
33
|
table: 'table',
|
|
31
34
|
tag: 'tag',
|
|
@@ -40,6 +43,7 @@ export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
|
40
43
|
analytics: 'anlytic',
|
|
41
44
|
audit: 'audit',
|
|
42
45
|
bot: 'bot',
|
|
46
|
+
devBot: 'devbot',
|
|
43
47
|
botApiKey: 'bak',
|
|
44
48
|
card: 'card',
|
|
45
49
|
channel: 'channel',
|
|
@@ -49,8 +53,9 @@ export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
|
49
53
|
file: 'file',
|
|
50
54
|
flow: 'flow',
|
|
51
55
|
integration: 'int',
|
|
52
|
-
integrationVersion: 'intver',
|
|
53
56
|
integrationApiKey: 'iak',
|
|
57
|
+
integrationVersion: 'intver',
|
|
58
|
+
devIntegration: 'devint',
|
|
54
59
|
issue: 'iss',
|
|
55
60
|
issueEvent: 'issevt',
|
|
56
61
|
knowledgeBase: 'kb',
|
|
@@ -63,6 +68,7 @@ export const objectToPrefixMap: Reverser<typeof prefixToObjectMap> = {
|
|
|
63
68
|
recurringEvent: 'recevt',
|
|
64
69
|
sandbox: 'sandbox',
|
|
65
70
|
schema: 'schema',
|
|
71
|
+
script: 'script',
|
|
66
72
|
state: 'state',
|
|
67
73
|
table: 'table',
|
|
68
74
|
tag: 'tag',
|
|
@@ -82,8 +88,8 @@ type Ids = {
|
|
|
82
88
|
export type ActionId = Ids['ActionId']
|
|
83
89
|
export type AnalyticsId = Ids['AnalyticsId']
|
|
84
90
|
export type AuditId = Ids['AuditId']
|
|
85
|
-
export type BotId = Ids['BotId']
|
|
86
91
|
export type BotApiKeyId = Ids['BotApiKeyId']
|
|
92
|
+
export type BotId = Ids['BotId']
|
|
87
93
|
export type CardId = Ids['CardId']
|
|
88
94
|
export type ChannelId = Ids['ChannelId']
|
|
89
95
|
export type ConfigurationId = Ids['ConfigurationId']
|
|
@@ -91,8 +97,8 @@ export type ConversationId = Ids['ConversationId']
|
|
|
91
97
|
export type EventId = Ids['EventId']
|
|
92
98
|
export type FileId = Ids['FileId']
|
|
93
99
|
export type FlowId = Ids['FlowId']
|
|
94
|
-
export type IntegrationId = Ids['IntegrationId']
|
|
95
100
|
export type IntegrationApiKeyId = Ids['IntegrationApiKeyId']
|
|
101
|
+
export type IntegrationId = Ids['IntegrationId']
|
|
96
102
|
export type Issue = Ids['IssueId']
|
|
97
103
|
export type IssueEvent = Ids['IssueEventId']
|
|
98
104
|
export type KnowledgeBaseId = Ids['KnowledgeBaseId']
|
|
@@ -105,6 +111,7 @@ export type QuotaId = Ids['QuotaId']
|
|
|
105
111
|
export type RecurringEventId = Ids['RecurringEventId']
|
|
106
112
|
export type SandboxId = Ids['SandboxId']
|
|
107
113
|
export type SchemaId = Ids['SchemaId']
|
|
114
|
+
export type ScriptId = Ids['ScriptId']
|
|
108
115
|
export type StateId = Ids['StateId']
|
|
109
116
|
export type TableId = Ids['TableId']
|
|
110
117
|
export type TagId = Ids['TagId']
|