@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.
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/observability/events.d.ts +6 -0
- package/dist/esm/observability/events.d.ts.map +1 -1
- package/dist/esm/observability/events.mjs +6 -0
- package/dist/esm/z2hAssets.d.ts +6 -0
- package/dist/esm/z2hAssets.d.ts.map +1 -0
- package/dist/esm/z2hAssets.mjs +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/observability/events.d.ts +6 -0
- package/dist/observability/events.d.ts.map +1 -1
- package/dist/observability/events.js +6 -0
- package/dist/z2hAssets.d.ts +6 -0
- package/dist/z2hAssets.d.ts.map +1 -0
- package/dist/z2hAssets.js +13 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/observability/events.ts +6 -0
- package/src/z2hAssets.ts +10 -0
package/dist/esm/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
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -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/esm/index.mjs
CHANGED
|
@@ -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
|
|
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 @@
|
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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
|
|
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 @@
|
|
|
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
package/src/index.ts
CHANGED
|
@@ -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',
|
package/src/z2hAssets.ts
ADDED
|
@@ -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
|
+
};
|