@vrplatform/hyperline-client 1.0.15 → 1.0.17

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.
Files changed (39) hide show
  1. package/build/main/_types.generated.d.ts +10302 -7421
  2. package/build/main/_types.generated.js.map +1 -1
  3. package/build/main/client.d.ts +215 -53
  4. package/build/main/client.js.map +1 -1
  5. package/build/main/const.d.ts +1 -1
  6. package/build/main/const.js.map +1 -1
  7. package/build/main/index.d.ts +2 -2
  8. package/build/main/index.js +2 -2
  9. package/build/main/index.js.map +1 -1
  10. package/build/main/tsconfig.main.tsbuildinfo +1 -1
  11. package/build/main/utils/getMrrDiffReasons.d.ts +2 -7
  12. package/build/main/utils/getMrrDiffReasons.js +1 -5
  13. package/build/main/utils/getMrrDiffReasons.js.map +1 -1
  14. package/build/main/utils/index.d.ts +1 -1
  15. package/build/main/utils/index.js +1 -1
  16. package/build/main/utils/index.js.map +1 -1
  17. package/build/module/_types.generated.d.ts +10302 -7421
  18. package/build/module/_types.generated.js.map +1 -1
  19. package/build/module/client.d.ts +215 -53
  20. package/build/module/client.js.map +1 -1
  21. package/build/module/const.d.ts +1 -1
  22. package/build/module/const.js.map +1 -1
  23. package/build/module/index.d.ts +2 -2
  24. package/build/module/index.js +2 -2
  25. package/build/module/index.js.map +1 -1
  26. package/build/module/tsconfig.esm.tsbuildinfo +1 -1
  27. package/build/module/utils/getMrrDiffReasons.d.ts +2 -7
  28. package/build/module/utils/getMrrDiffReasons.js +1 -5
  29. package/build/module/utils/getMrrDiffReasons.js.map +1 -1
  30. package/build/module/utils/index.d.ts +1 -1
  31. package/build/module/utils/index.js +1 -1
  32. package/build/module/utils/index.js.map +1 -1
  33. package/package.json +3 -3
  34. package/src/_types.generated.ts +10380 -7499
  35. package/src/client.ts +1 -3
  36. package/src/const.ts +1 -1
  37. package/src/index.ts +2 -2
  38. package/src/utils/getMrrDiffReasons.ts +2 -6
  39. package/src/utils/index.ts +1 -1
package/src/client.ts CHANGED
@@ -419,9 +419,7 @@ export class HyperlineAPI {
419
419
  );
420
420
  }
421
421
 
422
- async getComponentToken(data: {
423
- customer_id: string;
424
- }) {
422
+ async getComponentToken(data: { customer_id: string }) {
425
423
  return await this.fetch<
426
424
  paths['/v1/integrations/components/token']['post']['responses'][201]['content']['application/json']
427
425
  >('/v1/integrations/components/token', { method: 'POST' }, data);
package/src/const.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { currency_enum } from '@finalytic/graphql';
1
+ import type { currency_enum } from '@vrplatform/graphql';
2
2
  import type { TrackingEvent } from '@vrplatform/log';
3
3
  import { HyperlineEntities } from './types';
4
4
 
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './const';
2
- export * from './types';
3
1
  export * from './client';
2
+ export * from './const';
4
3
  export * from './hooks';
4
+ export * from './types';
5
5
  export * from './utils';
@@ -1,5 +1,5 @@
1
- import { useHasuraClient } from '@finalytic/graphql';
2
1
  import { groupBy, utc } from '@finalytic/utils';
2
+ import { HasuraClient } from '@vrplatform/graphql';
3
3
  import {
4
4
  VRP_TENANT_ID,
5
5
  XIMPLIFI_TENANT_ID,
@@ -15,14 +15,10 @@ function printPlusMinus(number: number) {
15
15
  return `${number >= 0 ? '+' : '-'}${Math.abs(number)}`;
16
16
  }
17
17
 
18
- const hasura = useHasuraClient({
19
- secret: process.env.HASURA_GRAPHQL_ADMIN_SECRET,
20
- });
21
-
22
18
  export async function getMrrDiffReasons(
23
19
  firstDate: string,
24
20
  lastDate: string,
25
- client = hasura
21
+ client: HasuraClient
26
22
  ) {
27
23
  const messages: string[] = [];
28
24
  messages.push(
@@ -1,2 +1,2 @@
1
- export * from './getMrrDiffReasons';
2
1
  export * from './arrayBufferToBase64';
2
+ export * from './getMrrDiffReasons';