@mondaydotcomorg/z2h-shared-utils 0.16.0 → 0.18.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.
@@ -1,4 +1,5 @@
1
1
  export * from './constants';
2
+ export { z2hAssets } from './z2hAssets';
2
3
  export { ALWAYS_ON_CHANNELS, CUSTOM_INTEGRATION_HOST_STATUSES, DECLARED_INTEGRATIONS, type AlwaysOnChannel, type CustomIntegrationHostStatus, type DeclaredIntegration, } from './integrations';
3
4
  export type { AppVersionSummary, AppVersionsResponse, DeployVersion } from './appVersions';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { APP_NAME_PATTERN, APP_USAGE_BUCKET_NAME, APP_USAGE_PREFIX, BUCKET_READ_DNS_NAME, BUCKET_READ_DNS_URL, BUCKET_WRITE_NAME, BUCKET_WRITE_URL, DATAVIZ_SKILLS_PREFIX, MANIFEST_KEY, MANIFEST_READ_URL, PREVIEW_APP_NAME_PREFIX, REGION, S3_PREVIEWS_FOLDER, S3_SKILLS_BUCKET_NAME, appUsageFolder } from './constants.mjs';
2
+ export { z2hAssets } from './z2hAssets.mjs';
2
3
  export { ALWAYS_ON_CHANNELS, CUSTOM_INTEGRATION_HOST_STATUSES, DECLARED_INTEGRATIONS } from './integrations.mjs';
@@ -64,6 +64,9 @@ export declare const Z2hServiceEvents: {
64
64
  };
65
65
  readonly apps: {
66
66
  readonly deleted: "z2h_app_deleted";
67
+ readonly archived: "z2h_app_archived";
68
+ readonly archiveFailed: "z2h_app_archive_failed";
69
+ readonly unarchived: "z2h_app_unarchived";
67
70
  readonly grantChanged: "z2h_grant_changed";
68
71
  readonly grantsLimitHit: "z2h_grants_limit_hit";
69
72
  };
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAgBjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAgBjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
@@ -64,6 +64,9 @@ const Z2hServiceEvents = {
64
64
  },
65
65
  apps: {
66
66
  deleted: 'z2h_app_deleted',
67
+ archived: 'z2h_app_archived',
68
+ archiveFailed: 'z2h_app_archive_failed',
69
+ unarchived: 'z2h_app_unarchived',
67
70
  grantChanged: 'z2h_grant_changed',
68
71
  grantsLimitHit: 'z2h_grants_limit_hit',
69
72
  },
@@ -0,0 +1,6 @@
1
+ export declare const z2hAssets: (isProd: boolean) => {
2
+ bucket: string;
3
+ readUrl: string;
4
+ appHost: string;
5
+ };
6
+ //# sourceMappingURL=z2hAssets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"z2hAssets.d.ts","sourceRoot":"","sources":["../../src/z2hAssets.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,QAAQ,OAAO;;;;CAOlC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { BUCKET_WRITE_NAME, BUCKET_READ_DNS_URL, BUCKET_READ_DNS_NAME } from './constants.mjs';
2
+
3
+ const z2hAssets = (isProd) => isProd
4
+ ? { bucket: BUCKET_WRITE_NAME, readUrl: BUCKET_READ_DNS_URL, appHost: 'https://bigbrain.me' }
5
+ : {
6
+ bucket: 'stage-use1-bigbrain-zth-mf-assets',
7
+ readUrl: `https://${BUCKET_READ_DNS_NAME}.bigbrainstaging.me`,
8
+ appHost: 'https://bigbrainstaging.me',
9
+ };
10
+
11
+ export { z2hAssets };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './constants';
2
+ export { z2hAssets } from './z2hAssets';
2
3
  export { ALWAYS_ON_CHANNELS, CUSTOM_INTEGRATION_HOST_STATUSES, DECLARED_INTEGRATIONS, type AlwaysOnChannel, type CustomIntegrationHostStatus, type DeclaredIntegration, } from './integrations';
3
4
  export type { AppVersionSummary, AppVersionsResponse, DeployVersion } from './appVersions';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
3
  const constants = require('./constants.js');
4
+ const z2hAssets = require('./z2hAssets.js');
4
5
  const integrations = require('./integrations.js');
5
6
 
6
7
 
@@ -20,6 +21,7 @@ exports.REGION = constants.REGION;
20
21
  exports.S3_PREVIEWS_FOLDER = constants.S3_PREVIEWS_FOLDER;
21
22
  exports.S3_SKILLS_BUCKET_NAME = constants.S3_SKILLS_BUCKET_NAME;
22
23
  exports.appUsageFolder = constants.appUsageFolder;
24
+ exports.z2hAssets = z2hAssets.z2hAssets;
23
25
  exports.ALWAYS_ON_CHANNELS = integrations.ALWAYS_ON_CHANNELS;
24
26
  exports.CUSTOM_INTEGRATION_HOST_STATUSES = integrations.CUSTOM_INTEGRATION_HOST_STATUSES;
25
27
  exports.DECLARED_INTEGRATIONS = integrations.DECLARED_INTEGRATIONS;
@@ -64,6 +64,9 @@ export declare const Z2hServiceEvents: {
64
64
  };
65
65
  readonly apps: {
66
66
  readonly deleted: "z2h_app_deleted";
67
+ readonly archived: "z2h_app_archived";
68
+ readonly archiveFailed: "z2h_app_archive_failed";
69
+ readonly unarchived: "z2h_app_unarchived";
67
70
  readonly grantChanged: "z2h_grant_changed";
68
71
  readonly grantsLimitHit: "z2h_grants_limit_hit";
69
72
  };
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAgBjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;CAgBjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
@@ -66,6 +66,9 @@ const Z2hServiceEvents = {
66
66
  },
67
67
  apps: {
68
68
  deleted: 'z2h_app_deleted',
69
+ archived: 'z2h_app_archived',
70
+ archiveFailed: 'z2h_app_archive_failed',
71
+ unarchived: 'z2h_app_unarchived',
69
72
  grantChanged: 'z2h_grant_changed',
70
73
  grantsLimitHit: 'z2h_grants_limit_hit',
71
74
  },
@@ -0,0 +1,6 @@
1
+ export declare const z2hAssets: (isProd: boolean) => {
2
+ bucket: string;
3
+ readUrl: string;
4
+ appHost: string;
5
+ };
6
+ //# sourceMappingURL=z2hAssets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"z2hAssets.d.ts","sourceRoot":"","sources":["../src/z2hAssets.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,QAAQ,OAAO;;;;CAOlC,CAAC"}
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const constants = require('./constants.js');
4
+
5
+ const z2hAssets = (isProd) => isProd
6
+ ? { bucket: constants.BUCKET_WRITE_NAME, readUrl: constants.BUCKET_READ_DNS_URL, appHost: 'https://bigbrain.me' }
7
+ : {
8
+ bucket: 'stage-use1-bigbrain-zth-mf-assets',
9
+ readUrl: `https://${constants.BUCKET_READ_DNS_NAME}.bigbrainstaging.me`,
10
+ appHost: 'https://bigbrainstaging.me',
11
+ };
12
+
13
+ exports.z2hAssets = z2hAssets;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/z2h-shared-utils",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './constants';
2
+ export { z2hAssets } from './z2hAssets';
2
3
  export {
3
4
  ALWAYS_ON_CHANNELS,
4
5
  CUSTOM_INTEGRATION_HOST_STATUSES,
@@ -65,6 +65,9 @@ export const Z2hServiceEvents = {
65
65
  },
66
66
  apps: {
67
67
  deleted: 'z2h_app_deleted',
68
+ archived: 'z2h_app_archived',
69
+ archiveFailed: 'z2h_app_archive_failed',
70
+ unarchived: 'z2h_app_unarchived',
68
71
  grantChanged: 'z2h_grant_changed',
69
72
  grantsLimitHit: 'z2h_grants_limit_hit',
70
73
  },
@@ -0,0 +1,10 @@
1
+ import { BUCKET_READ_DNS_NAME, BUCKET_READ_DNS_URL, BUCKET_WRITE_NAME } from './constants';
2
+
3
+ export const z2hAssets = (isProd: boolean) =>
4
+ isProd
5
+ ? { bucket: BUCKET_WRITE_NAME, readUrl: BUCKET_READ_DNS_URL, appHost: 'https://bigbrain.me' }
6
+ : {
7
+ bucket: 'stage-use1-bigbrain-zth-mf-assets',
8
+ readUrl: `https://${BUCKET_READ_DNS_NAME}.bigbrainstaging.me`,
9
+ appHost: 'https://bigbrainstaging.me',
10
+ };