@messenger-box/property-ext-server 10.0.2-alpha.3 → 10.0.2-alpha.4
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/lib/config/env-config.js +16 -0
- package/lib/config/env-config.js.map +1 -0
- package/lib/containers/container.js +5 -0
- package/lib/containers/container.js.map +1 -0
- package/lib/graphql/schema/index.js +3 -0
- package/lib/graphql/schema/index.js.map +1 -0
- package/lib/graphql/schema/post.graphql +4 -0
- package/lib/graphql/schema/post.graphql.js +1 -0
- package/lib/graphql/schema/post.graphql.js.map +1 -0
- package/lib/index.js +1 -766
- package/lib/index.js.map +1 -1
- package/lib/migrations/bot-user-migration.d.ts +2 -2
- package/lib/migrations/bot-user-migration.js +48 -0
- package/lib/migrations/bot-user-migration.js.map +1 -0
- package/lib/migrations/property-ext-messages-migration.d.ts +2 -2
- package/lib/migrations/property-ext-messages-migration.js +283 -0
- package/lib/migrations/property-ext-messages-migration.js.map +1 -0
- package/lib/mock/migration/add-channel-migration.d.ts +17 -0
- package/lib/mock/migration/test-user-migration.d.ts +12 -0
- package/lib/module.js +4 -0
- package/lib/module.js.map +1 -0
- package/lib/preferences/channels/channel-settings.d.ts +5 -0
- package/lib/routes.json +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {cleanEnv,str}from'envalid';const env = process.APP_ENV || process.env;
|
|
2
|
+
const config = cleanEnv(env, {
|
|
3
|
+
NODE_ENV: str({
|
|
4
|
+
choices: ['production', 'test', 'staging', 'development'],
|
|
5
|
+
default: 'production'
|
|
6
|
+
}),
|
|
7
|
+
POST_DATA_FILE_PATH: str({
|
|
8
|
+
default: 'node_modules/@messenger-box/property-ext-server/lib/mock/fixtures/post.json'
|
|
9
|
+
}),
|
|
10
|
+
CHANNEL_DATA_FILE_PATH: str({
|
|
11
|
+
default: 'node_modules/@messenger-box/property-ext-server/lib/mock/fixtures/channel.json'
|
|
12
|
+
}),
|
|
13
|
+
APP_NAME: str({
|
|
14
|
+
devDefault: 'Support'
|
|
15
|
+
})
|
|
16
|
+
});export{config};//# sourceMappingURL=env-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"mCAGA,MAAM,GAAG,GAAI,OAAe,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG;AAEtC,MAAA,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;UACxB,EAAA;IACR,OAAmB,EAAA,CAAA,cAAK,MAAC,EAAA,SAAA,EAAA,aAAA,CAAA;AACrB,IAAA,OAAA,EAAA;;qBAEkB,EAAA,GAAA,CAAA;AAClB,IAAA,OAAA,EAAA;;8BAEsB;AAC7B,IAAE,OAAA,EAAA;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import {ContainerModule}from'inversify';import {PropertyExtMessagesMigration}from'../migrations/property-ext-messages-migration.js';import {BotUserMigration}from'../migrations/bot-user-migration.js';// @ts-nocheck
|
|
2
|
+
const propertyContainerModule = () => new ContainerModule(bind => {
|
|
3
|
+
bind('MongodbMigration').to(BotUserMigration).whenTargetNamed(BotUserMigration.name);
|
|
4
|
+
bind('MongodbMigration').to(PropertyExtMessagesMigration).whenTargetNamed(PropertyExtMessagesMigration.name);
|
|
5
|
+
});export{propertyContainerModule};//# sourceMappingURL=container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.js","sources":["../../src/containers/container.ts"],"sourcesContent":[null],"names":[],"mappings":"uMAAA;AAIO,MAAM,uBAAuB,GAA6C,MAC7E,IAAI,eAAe,CAAC,IAAC,IAAyB;AAC1C,EAAA,IAAA,CAAA,kBAAK,CAAA,CAAkB,EAAE,iBAAG,CAAA,CAAgB,gCAAkB,CAAA,IAAiB,CAAA;AAC/E,EAAA,IAAA,CAAA,kBAAK,CAAA,CAAkB,EAAE,6BAAG,CAAA,CAA4B,4CAAkB,CAAA,IAA6B,CAAA;AAC3G,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/graphql/schema/index.ts"],"sourcesContent":[null],"names":[],"mappings":"oCAAA;AACA;AAGO,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var post = "extend enum PostTypeEnum{\n ALERT\n CARD\n}\n";export{post as default};//# sourceMappingURL=post.graphql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.graphql.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|