@sgftech/medusa-payment-stripe-subscription 0.0.1 → 0.0.2

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 (137) hide show
  1. package/.cache/admin/i18next-parser.config.js +106 -0
  2. package/.cache/admin/index.html +12 -0
  3. package/.cache/admin/postcss.config.js +11 -0
  4. package/.cache/admin/public/locales/ar/translation.json +1919 -0
  5. package/.cache/admin/public/locales/bg/translation.json +2011 -0
  6. package/.cache/admin/public/locales/bs/translation.json +2011 -0
  7. package/.cache/admin/public/locales/cs/translation.json +1942 -0
  8. package/.cache/admin/public/locales/de/translation.json +1924 -0
  9. package/.cache/admin/public/locales/en/translation.json +2011 -0
  10. package/.cache/admin/public/locales/es/translation.json +1924 -0
  11. package/.cache/admin/public/locales/fr/translation.json +1924 -0
  12. package/.cache/admin/public/locales/hi/translation.json +2011 -0
  13. package/.cache/admin/public/locales/hr/translation.json +2011 -0
  14. package/.cache/admin/public/locales/it/translation.json +1922 -0
  15. package/.cache/admin/public/locales/ja/translation.json +2006 -0
  16. package/.cache/admin/public/locales/ko/translation.json +2011 -0
  17. package/.cache/admin/public/locales/pl/translation.json +1919 -0
  18. package/.cache/admin/public/locales/pt/translation.json +1925 -0
  19. package/.cache/admin/public/locales/ru/translation.json +1919 -0
  20. package/.cache/admin/public/locales/sl/translation.json +2010 -0
  21. package/.cache/admin/public/locales/tm/translation.json +1924 -0
  22. package/.cache/admin/public/locales/uk/translation.json +1919 -0
  23. package/.cache/admin/public/locales/vi/translation.json +2011 -0
  24. package/.cache/admin/public/locales/zh/translation.json +2011 -0
  25. package/.cache/admin/public/logo.svg +10 -0
  26. package/.cache/admin/tailwind.config.js +388 -0
  27. package/.cache/admin/tailwind.content.js +10 -0
  28. package/.cache/admin/tsconfig.json +22 -0
  29. package/.cache/admin-build-manifest.json +29 -0
  30. package/build/107.454cd3ecd92de90d4e54.css +932 -0
  31. package/build/107.9ec3bfd2.chunk.js +1 -0
  32. package/build/280.548c452b.chunk.js +2 -0
  33. package/build/373.379b71fc.chunk.js +1 -0
  34. package/build/387.88ccc0b5.chunk.js +1 -0
  35. package/build/413.7090ef47.chunk.js +1 -0
  36. package/build/442f6a4cc2f03aaf41f6.ttf +0 -0
  37. package/build/522.767f54d0.chunk.js +1 -0
  38. package/build/572.9811518b.chunk.js +1 -0
  39. package/build/580.f43a3b30.chunk.js +1 -0
  40. package/build/68fda0752a470b05a5c5.ttf +0 -0
  41. package/build/6dcbc9bed1ec438907ee.ttf +0 -0
  42. package/build/6ed339415e1071e8ebc9.ttf +0 -0
  43. package/build/708.70c238a3.chunk.js +1 -0
  44. package/build/728.6b8c1b6c.chunk.js +1 -0
  45. package/build/783.e1a0c118.chunk.js +1 -0
  46. package/build/816.5169a660.chunk.js +1 -0
  47. package/build/878.2ef684b1.chunk.js +1 -0
  48. package/build/993.8e119ce5.chunk.js +357 -0
  49. package/build/ajs-destination.b5af2884.chunk.js +1 -0
  50. package/build/auto-track.4e1dfd59.chunk.js +1 -0
  51. package/build/e62b16638c71c0eb4505.ttf +0 -0
  52. package/build/images/icon-minus-gray-fedf0680e4cc60b17e14.svg +16 -0
  53. package/build/images/icon-plus-gray-4813505451ce489532e3.svg +16 -0
  54. package/build/index.html +1 -0
  55. package/build/legacyVideos.574a0715.chunk.js +1 -0
  56. package/build/main.5d860546610c849e0659.css +6635 -0
  57. package/build/main.b293d864.js +244 -0
  58. package/build/public/locales/ar/translation.json +1919 -0
  59. package/build/public/locales/bg/translation.json +2011 -0
  60. package/build/public/locales/bs/translation.json +2011 -0
  61. package/build/public/locales/cs/translation.json +1942 -0
  62. package/build/public/locales/de/translation.json +1924 -0
  63. package/build/public/locales/en/translation.json +2011 -0
  64. package/build/public/locales/es/translation.json +1924 -0
  65. package/build/public/locales/fr/translation.json +1924 -0
  66. package/build/public/locales/hi/translation.json +2011 -0
  67. package/build/public/locales/hr/translation.json +2011 -0
  68. package/build/public/locales/it/translation.json +1922 -0
  69. package/build/public/locales/ja/translation.json +2006 -0
  70. package/build/public/locales/ko/translation.json +2011 -0
  71. package/build/public/locales/pl/translation.json +1919 -0
  72. package/build/public/locales/pt/translation.json +1925 -0
  73. package/build/public/locales/ru/translation.json +1919 -0
  74. package/build/public/locales/sl/translation.json +2010 -0
  75. package/build/public/locales/tm/translation.json +1924 -0
  76. package/build/public/locales/uk/translation.json +1919 -0
  77. package/build/public/locales/vi/translation.json +2011 -0
  78. package/build/public/locales/zh/translation.json +2011 -0
  79. package/build/public/logo.svg +10 -0
  80. package/build/queryString.4399199a.chunk.js +1 -0
  81. package/build/remoteMiddleware.de005d83.chunk.js +1 -0
  82. package/build/runtime~main.bbe9595e.js +1 -0
  83. package/build/schemaFilter.63dfa980.chunk.js +1 -0
  84. package/build/tsub-middleware.ec450ef0.chunk.js +1281 -0
  85. package/dist/__fixtures__/data.d.ts +30 -0
  86. package/dist/__fixtures__/data.js +34 -0
  87. package/dist/core/__fixtures__/data.d.ts +176 -0
  88. package/dist/core/__fixtures__/data.js +190 -0
  89. package/dist/core/__fixtures__/stripe-test.d.ts +6 -0
  90. package/dist/core/__fixtures__/stripe-test.js +17 -0
  91. package/dist/core/stripe-subscription.d.ts +36 -0
  92. package/dist/core/stripe-subscription.js +346 -0
  93. package/dist/index.js +1 -0
  94. package/dist/services/stripe-subscription-provider.d.ts +22 -0
  95. package/dist/services/stripe-subscription-provider.js +61 -0
  96. package/dist/subscribers/create-product-stripe.d.ts +3 -0
  97. package/dist/subscribers/create-product-stripe.js +18 -0
  98. package/dist/subscribers/delete-product-stripe.d.ts +3 -0
  99. package/dist/subscribers/delete-product-stripe.js +18 -0
  100. package/dist/subscribers/stripe-event.d.ts +4 -0
  101. package/dist/subscribers/stripe-event.js +17 -0
  102. package/dist/subscribers/update-product-stripe.d.ts +3 -0
  103. package/dist/subscribers/update-product-stripe.js +14 -0
  104. package/{src/types/index.ts → dist/types/index.d.ts} +3 -5
  105. package/dist/types/index.js +3 -0
  106. package/dist/utils/handle-customer-subscription.d.ts +9 -0
  107. package/dist/utils/handle-customer-subscription.js +18 -0
  108. package/dist/utils/handle-invoice-subscription.d.ts +9 -0
  109. package/dist/utils/handle-invoice-subscription.js +29 -0
  110. package/dist/utils/handle-subscription.d.ts +9 -0
  111. package/dist/utils/handle-subscription.js +46 -0
  112. package/dist/utils/index.d.ts +24 -0
  113. package/dist/utils/index.js +102 -0
  114. package/package.json +1 -1
  115. package/src/__fixtures__/data.ts +0 -30
  116. package/src/__mocks__/stripe.ts +0 -104
  117. package/src/api/README.md +0 -179
  118. package/src/core/__fixtures__/data.ts +0 -225
  119. package/src/core/__fixtures__/stripe-test.ts +0 -12
  120. package/src/core/__tests__/stripe-base.spec.ts +0 -640
  121. package/src/core/stripe-subscription.ts +0 -523
  122. package/src/jobs/README.md +0 -32
  123. package/src/loaders/README.md +0 -19
  124. package/src/migrations/README.md +0 -29
  125. package/src/models/README.md +0 -46
  126. package/src/services/README.md +0 -49
  127. package/src/services/stripe-subscription-provider.ts +0 -83
  128. package/src/subscribers/README.md +0 -44
  129. package/src/subscribers/create-product-stripe.ts +0 -23
  130. package/src/subscribers/delete-product-stripe.ts +0 -24
  131. package/src/subscribers/stripe-event.ts +0 -24
  132. package/src/subscribers/update-product-stripe.ts +0 -23
  133. package/src/utils/handle-customer-subscription.ts +0 -36
  134. package/src/utils/handle-invoice-subscription.ts +0 -54
  135. package/src/utils/handle-subscription.ts +0 -64
  136. package/src/utils/index.ts +0 -143
  137. /package/{src/index.ts → dist/index.d.ts} +0 -0
@@ -0,0 +1,106 @@
1
+ module.exports = {
2
+ contextSeparator: "_",
3
+ // Key separator used in your translation keys
4
+
5
+ createOldCatalogs: false,
6
+ // Save the \_old files
7
+
8
+ defaultNamespace: "translation",
9
+ // Default namespace used in your i18next config
10
+
11
+ defaultValue: "",
12
+ // Default value to give to keys with no value
13
+ // You may also specify a function accepting the locale, namespace, key, and value as arguments
14
+
15
+ indentation: 2,
16
+ // Indentation of the catalog files
17
+
18
+ keepRemoved: false,
19
+ // Keep keys from the catalog that are no longer in code
20
+
21
+ keySeparator: false,
22
+ // Key separator used in your translation keys
23
+ // If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.
24
+
25
+ // see below for more details
26
+ lexers: {
27
+ hbs: ["HandlebarsLexer"],
28
+ handlebars: ["HandlebarsLexer"],
29
+
30
+ htm: ["HTMLLexer"],
31
+ html: ["HTMLLexer"],
32
+
33
+ mjs: ["JavascriptLexer"],
34
+ js: ["JavascriptLexer"], // if you're writing jsx inside .js files, change this to JsxLexer
35
+ ts: ["JavascriptLexer"],
36
+ jsx: ["JsxLexer"],
37
+ tsx: ["JsxLexer"],
38
+
39
+ default: ["JavascriptLexer"],
40
+ },
41
+
42
+ lineEnding: "auto",
43
+ // Control the line ending. See options at https://github.com/ryanve/eol
44
+
45
+ locales: ["en"],
46
+ // An array of the locales in your applications
47
+
48
+ namespaceSeparator: false,
49
+ // Namespace separator used in your translation keys
50
+ // If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance.
51
+
52
+ output: "ui/public/locales/$LOCALE/$NAMESPACE.json",
53
+ // Supports $LOCALE and $NAMESPACE injection
54
+ // Supports JSON (.json) and YAML (.yml) file formats
55
+ // Where to write the locale files relative to process.cwd()
56
+
57
+ pluralSeparator: "_",
58
+ // Plural separator used in your translation keys
59
+ // If you want to use plain english keys, separators such as `_` might conflict. You might want to set `pluralSeparator` to a different string that does not occur in your keys.
60
+
61
+ input: undefined,
62
+ // An array of globs that describe where to look for source files
63
+ // relative to the location of the configuration file
64
+
65
+ sort: false,
66
+ // Whether or not to sort the catalog. Can also be a [compareFunction](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#parameters)
67
+
68
+ verbose: true,
69
+ // Display info about the parsing including some stats
70
+
71
+ failOnWarnings: true,
72
+ // Exit with an exit code of 1 on warnings
73
+
74
+ failOnUpdate: false,
75
+ // Exit with an exit code of 1 when translations are updated (for CI purpose)
76
+
77
+ customValueTemplate: null,
78
+ // If you wish to customize the value output the value as an object, you can set your own format.
79
+ // ${defaultValue} is the default value you set in your translation function.
80
+ // Any other custom property will be automatically extracted.
81
+ //
82
+ // Example:
83
+ // {
84
+ // message: "${defaultValue}",
85
+ // description: "${maxLength}", // t('my-key', {maxLength: 150})
86
+ // }
87
+
88
+ resetDefaultValueLocale: null,
89
+ // The locale to compare with default values to determine whether a default value has been changed.
90
+ // If this is set and a default value differs from a translation in the specified locale, all entries
91
+ // for that key across locales are reset to the default value, and existing translations are moved to
92
+ // the `_old` file.
93
+
94
+ i18nextOptions: null,
95
+ // If you wish to customize options in internally used i18next instance, you can define an object with any
96
+ // configuration property supported by i18next (https://www.i18next.com/overview/configuration-options).
97
+ // { compatibilityJSON: 'v3' } can be used to generate v3 compatible plurals.
98
+
99
+ yamlOptions: null,
100
+ // If you wish to customize options for yaml output, you can define an object here.
101
+ // Configuration options are here (https://github.com/nodeca/js-yaml#dump-object---options-).
102
+ // Example:
103
+ // {
104
+ // lineWidth: -1,
105
+ // }
106
+ }
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/logo.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Medusa</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ </body>
12
+ </html>
@@ -0,0 +1,11 @@
1
+ const path = require("path")
2
+
3
+ module.exports = {
4
+ plugins: [
5
+ require("tailwindcss/nesting"),
6
+ require("tailwindcss")({
7
+ config: path.join(__dirname, "tailwind.config.js"),
8
+ }),
9
+ require("autoprefixer"),
10
+ ],
11
+ }