@mondaydotcomorg/z2h-shared-utils 0.17.0 → 0.19.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';
@@ -41,6 +41,12 @@ export declare const BackendRunnerEvents: {
41
41
  readonly customIntegration: {
42
42
  readonly hostDeniedMetric: "z2h.custom_integration.host_denied";
43
43
  };
44
+ readonly mondayFile: {
45
+ readonly transferMetric: "z2h.channel.monday_file.transfer";
46
+ readonly bytesMetric: "z2h.channel.monday_file.bytes";
47
+ readonly phaseDurationMetric: "z2h.channel.monday_file.phase_ms";
48
+ readonly biEvent: "z2h_monday_file_transfer";
49
+ };
44
50
  readonly integrationToken: {
45
51
  readonly decryptFailedMetric: "z2h.integration_token.decrypt_failed";
46
52
  readonly unexpectedShapeMetric: "z2h.integration_token.unexpected_shape";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDtB,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"}
@@ -41,6 +41,12 @@ const BackendRunnerEvents = {
41
41
  customIntegration: {
42
42
  hostDeniedMetric: 'z2h.custom_integration.host_denied',
43
43
  },
44
+ mondayFile: {
45
+ transferMetric: 'z2h.channel.monday_file.transfer',
46
+ bytesMetric: 'z2h.channel.monday_file.bytes',
47
+ phaseDurationMetric: 'z2h.channel.monday_file.phase_ms',
48
+ biEvent: 'z2h_monday_file_transfer',
49
+ },
44
50
  integrationToken: {
45
51
  decryptFailedMetric: 'z2h.integration_token.decrypt_failed',
46
52
  unexpectedShapeMetric: 'z2h.integration_token.unexpected_shape',
@@ -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;
@@ -41,6 +41,12 @@ export declare const BackendRunnerEvents: {
41
41
  readonly customIntegration: {
42
42
  readonly hostDeniedMetric: "z2h.custom_integration.host_denied";
43
43
  };
44
+ readonly mondayFile: {
45
+ readonly transferMetric: "z2h.channel.monday_file.transfer";
46
+ readonly bytesMetric: "z2h.channel.monday_file.bytes";
47
+ readonly phaseDurationMetric: "z2h.channel.monday_file.phase_ms";
48
+ readonly biEvent: "z2h_monday_file_transfer";
49
+ };
44
50
  readonly integrationToken: {
45
51
  readonly decryptFailedMetric: "z2h.integration_token.decrypt_failed";
46
52
  readonly unexpectedShapeMetric: "z2h.integration_token.unexpected_shape";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDtB,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"}
@@ -43,6 +43,12 @@ const BackendRunnerEvents = {
43
43
  customIntegration: {
44
44
  hostDeniedMetric: 'z2h.custom_integration.host_denied',
45
45
  },
46
+ mondayFile: {
47
+ transferMetric: 'z2h.channel.monday_file.transfer',
48
+ bytesMetric: 'z2h.channel.monday_file.bytes',
49
+ phaseDurationMetric: 'z2h.channel.monday_file.phase_ms',
50
+ biEvent: 'z2h_monday_file_transfer',
51
+ },
46
52
  integrationToken: {
47
53
  decryptFailedMetric: 'z2h.integration_token.decrypt_failed',
48
54
  unexpectedShapeMetric: 'z2h.integration_token.unexpected_shape',
@@ -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.17.0",
3
+ "version": "0.19.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,
@@ -41,6 +41,12 @@ export const BackendRunnerEvents = {
41
41
  customIntegration: {
42
42
  hostDeniedMetric: 'z2h.custom_integration.host_denied',
43
43
  },
44
+ mondayFile: {
45
+ transferMetric: 'z2h.channel.monday_file.transfer',
46
+ bytesMetric: 'z2h.channel.monday_file.bytes',
47
+ phaseDurationMetric: 'z2h.channel.monday_file.phase_ms',
48
+ biEvent: 'z2h_monday_file_transfer',
49
+ },
44
50
  integrationToken: {
45
51
  decryptFailedMetric: 'z2h.integration_token.decrypt_failed',
46
52
  unexpectedShapeMetric: 'z2h.integration_token.unexpected_shape',
@@ -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
+ };