@geins/core 0.3.0-canary

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 (88) hide show
  1. package/.turbo/turbo-build.log +7 -0
  2. package/CHANGELOG.md +13 -0
  3. package/README.md +1 -0
  4. package/__tests__/Channel.test.ts +34 -0
  5. package/__tests__/EventService.test.ts +32 -0
  6. package/__tests__/GeinsCore.test.ts +69 -0
  7. package/__tests__/Graphql.test.ts +43 -0
  8. package/dist/api-client/endpointClient.d.ts +8 -0
  9. package/dist/api-client/index.d.ts +4 -0
  10. package/dist/api-client/managementApiClient.d.ts +10 -0
  11. package/dist/api-client/merchantApiClient.d.ts +46 -0
  12. package/dist/base/baseApiService.d.ts +14 -0
  13. package/dist/base/basePackage.d.ts +12 -0
  14. package/dist/base/baseStore.d.ts +14 -0
  15. package/dist/base/index.d.ts +3 -0
  16. package/dist/constants/cookies.d.ts +11 -0
  17. package/dist/constants/endpoints.d.ts +14 -0
  18. package/dist/constants/headerNames.d.ts +3 -0
  19. package/dist/constants/index.d.ts +3 -0
  20. package/dist/geinsCore.d.ts +88 -0
  21. package/dist/graphql/index.d.ts +1 -0
  22. package/dist/graphql/queries.d.ts +5 -0
  23. package/dist/index.cjs +21783 -0
  24. package/dist/index.d.ts +10 -0
  25. package/dist/index.esm.js +21749 -0
  26. package/dist/logic/channel.d.ts +17 -0
  27. package/dist/logic/index.d.ts +1 -0
  28. package/dist/parsers/channelParser.d.ts +8 -0
  29. package/dist/services/channelService.d.ts +8 -0
  30. package/dist/services/channelsService.d.ts +8 -0
  31. package/dist/services/cookieService.d.ts +88 -0
  32. package/dist/services/eventService.d.ts +51 -0
  33. package/dist/services/graphQLService.d.ts +23 -0
  34. package/dist/services/index.d.ts +7 -0
  35. package/dist/services/logService.d.ts +19 -0
  36. package/dist/services/routingService.d.ts +74 -0
  37. package/dist/stores/channelStore.d.ts +11 -0
  38. package/dist/stores/index.d.ts +2 -0
  39. package/dist/stores/routingStore.d.ts +32 -0
  40. package/dist/utils/helpers.d.ts +21 -0
  41. package/dist/utils/index.d.ts +2 -0
  42. package/dist/utils/simpleCache.d.ts +9 -0
  43. package/eslint.config.js +3 -0
  44. package/jest.config.js +8 -0
  45. package/package.json +32 -0
  46. package/rollup.config.js +26 -0
  47. package/src/api-client/endpointClient.ts +52 -0
  48. package/src/api-client/index.ts +4 -0
  49. package/src/api-client/managementApiClient.ts +41 -0
  50. package/src/api-client/merchantApiClient.ts +153 -0
  51. package/src/base/baseApiService.ts +96 -0
  52. package/src/base/basePackage.ts +39 -0
  53. package/src/base/baseStore.ts +21 -0
  54. package/src/base/index.ts +3 -0
  55. package/src/constants/cookies.ts +12 -0
  56. package/src/constants/endpoints.ts +27 -0
  57. package/src/constants/headerNames.ts +3 -0
  58. package/src/constants/index.ts +3 -0
  59. package/src/geinsCore.ts +214 -0
  60. package/src/graphql/channel.gql +16 -0
  61. package/src/graphql/channels.gql +16 -0
  62. package/src/graphql/fragments/channelFields.gql +8 -0
  63. package/src/graphql/fragments/countryFields.gql +4 -0
  64. package/src/graphql/fragments/currencyFields.gql +4 -0
  65. package/src/graphql/fragments/languageFields.gql +5 -0
  66. package/src/graphql/fragments/marketFields.gql +19 -0
  67. package/src/graphql/graphql.d.ts +4 -0
  68. package/src/graphql/index.ts +1 -0
  69. package/src/graphql/queries.ts +9 -0
  70. package/src/index.ts +10 -0
  71. package/src/logic/channel.ts +102 -0
  72. package/src/logic/index.ts +1 -0
  73. package/src/parsers/channelParser.ts +91 -0
  74. package/src/services/channelService.ts +33 -0
  75. package/src/services/channelsService.ts +35 -0
  76. package/src/services/cookieService.ts +168 -0
  77. package/src/services/eventService.ts +89 -0
  78. package/src/services/graphQLService.ts +55 -0
  79. package/src/services/index.ts +7 -0
  80. package/src/services/logService.ts +434 -0
  81. package/src/services/routingService.ts +196 -0
  82. package/src/stores/channelStore.ts +34 -0
  83. package/src/stores/index.ts +2 -0
  84. package/src/stores/routingStore.ts +56 -0
  85. package/src/utils/helpers.ts +39 -0
  86. package/src/utils/index.ts +2 -0
  87. package/src/utils/simpleCache.ts +27 -0
  88. package/tsconfig.json +19 -0
@@ -0,0 +1,10 @@
1
+ export * from '@geins/types';
2
+ export * from './api-client';
3
+ export * from './base';
4
+ export * from './constants';
5
+ export * from './geinsCore';
6
+ export * from './services';
7
+ export * from './stores';
8
+ export * from './utils';
9
+ export * from './logic';
10
+ export { gql } from '@apollo/client/core';