@marcoappio/marco-config 2.0.105 → 2.0.106

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.d.ts CHANGED
@@ -3,4 +3,5 @@ export { marcoPublicConfig, MARCO_ENV, MarcoEnvironment } from './marcoPublicCon
3
3
  export { marcoSDK } from './sdk';
4
4
  export { MarcoWSEvent, MarcoClient, MarcoWSSyncPoke, EndpointConfig, EndpointError, EndpointResponse } from './types';
5
5
  export { marcoSchemas } from './schemas';
6
+ export { marcoWS } from './ws';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACrH,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACrH,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA"}
package/dist/index.js CHANGED
@@ -2,3 +2,4 @@ export { marcoClients } from './clients';
2
2
  export { marcoPublicConfig, MARCO_ENV } from './marcoPublicConfig';
3
3
  export { marcoSDK } from './sdk';
4
4
  export { marcoSchemas } from './schemas';
5
+ export { marcoWS } from './ws';
@@ -1,9 +1,10 @@
1
1
  import { marcoClients } from '../clients';
2
+ export declare enum MarcoWSEventType {
3
+ SYNC_POKE = "SYNC_POKE"
4
+ }
2
5
  export type MarcoWSSyncPoke = {
3
- data: {
4
- clientName: keyof typeof marcoClients;
5
- };
6
- event: 'SYNC_POKE';
6
+ data: keyof typeof marcoClients;
7
+ event: MarcoWSEventType.SYNC_POKE;
7
8
  };
8
9
  export type MarcoWSEvent = MarcoWSSyncPoke;
9
10
  //# sourceMappingURL=WS.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WS.d.ts","sourceRoot":"","sources":["../../src/types/WS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,OAAO,YAAY,CAAA;KACtC,CAAA;IACD,KAAK,EAAE,WAAW,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,eAAe,CAAA"}
1
+ {"version":3,"file":"WS.d.ts","sourceRoot":"","sources":["../../src/types/WS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,oBAAY,gBAAgB;IAC1B,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,OAAO,YAAY,CAAA;IAC/B,KAAK,EAAE,gBAAgB,CAAC,SAAS,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,eAAe,CAAA"}
package/dist/types/WS.js CHANGED
@@ -1 +1,4 @@
1
- export {};
1
+ export var MarcoWSEventType;
2
+ (function (MarcoWSEventType) {
3
+ MarcoWSEventType["SYNC_POKE"] = "SYNC_POKE";
4
+ })(MarcoWSEventType || (MarcoWSEventType = {}));
package/dist/ws.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export declare const marcoWS: {
2
+ getChannelName: {
3
+ user: (userId: string) => string;
4
+ };
5
+ };
6
+ //# sourceMappingURL=ws.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;uBAED,MAAM;;CAExB,CAAA"}
package/dist/ws.js ADDED
@@ -0,0 +1,5 @@
1
+ export const marcoWS = {
2
+ getChannelName: {
3
+ user: (userId) => userId.replace('|', '-'),
4
+ },
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.105",
3
+ "version": "2.0.106",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",