@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.
- package/.cache/admin/i18next-parser.config.js +106 -0
- package/.cache/admin/index.html +12 -0
- package/.cache/admin/postcss.config.js +11 -0
- package/.cache/admin/public/locales/ar/translation.json +1919 -0
- package/.cache/admin/public/locales/bg/translation.json +2011 -0
- package/.cache/admin/public/locales/bs/translation.json +2011 -0
- package/.cache/admin/public/locales/cs/translation.json +1942 -0
- package/.cache/admin/public/locales/de/translation.json +1924 -0
- package/.cache/admin/public/locales/en/translation.json +2011 -0
- package/.cache/admin/public/locales/es/translation.json +1924 -0
- package/.cache/admin/public/locales/fr/translation.json +1924 -0
- package/.cache/admin/public/locales/hi/translation.json +2011 -0
- package/.cache/admin/public/locales/hr/translation.json +2011 -0
- package/.cache/admin/public/locales/it/translation.json +1922 -0
- package/.cache/admin/public/locales/ja/translation.json +2006 -0
- package/.cache/admin/public/locales/ko/translation.json +2011 -0
- package/.cache/admin/public/locales/pl/translation.json +1919 -0
- package/.cache/admin/public/locales/pt/translation.json +1925 -0
- package/.cache/admin/public/locales/ru/translation.json +1919 -0
- package/.cache/admin/public/locales/sl/translation.json +2010 -0
- package/.cache/admin/public/locales/tm/translation.json +1924 -0
- package/.cache/admin/public/locales/uk/translation.json +1919 -0
- package/.cache/admin/public/locales/vi/translation.json +2011 -0
- package/.cache/admin/public/locales/zh/translation.json +2011 -0
- package/.cache/admin/public/logo.svg +10 -0
- package/.cache/admin/tailwind.config.js +388 -0
- package/.cache/admin/tailwind.content.js +10 -0
- package/.cache/admin/tsconfig.json +22 -0
- package/.cache/admin-build-manifest.json +29 -0
- package/build/107.454cd3ecd92de90d4e54.css +932 -0
- package/build/107.9ec3bfd2.chunk.js +1 -0
- package/build/280.548c452b.chunk.js +2 -0
- package/build/373.379b71fc.chunk.js +1 -0
- package/build/387.88ccc0b5.chunk.js +1 -0
- package/build/413.7090ef47.chunk.js +1 -0
- package/build/442f6a4cc2f03aaf41f6.ttf +0 -0
- package/build/522.767f54d0.chunk.js +1 -0
- package/build/572.9811518b.chunk.js +1 -0
- package/build/580.f43a3b30.chunk.js +1 -0
- package/build/68fda0752a470b05a5c5.ttf +0 -0
- package/build/6dcbc9bed1ec438907ee.ttf +0 -0
- package/build/6ed339415e1071e8ebc9.ttf +0 -0
- package/build/708.70c238a3.chunk.js +1 -0
- package/build/728.6b8c1b6c.chunk.js +1 -0
- package/build/783.e1a0c118.chunk.js +1 -0
- package/build/816.5169a660.chunk.js +1 -0
- package/build/878.2ef684b1.chunk.js +1 -0
- package/build/993.8e119ce5.chunk.js +357 -0
- package/build/ajs-destination.b5af2884.chunk.js +1 -0
- package/build/auto-track.4e1dfd59.chunk.js +1 -0
- package/build/e62b16638c71c0eb4505.ttf +0 -0
- package/build/images/icon-minus-gray-fedf0680e4cc60b17e14.svg +16 -0
- package/build/images/icon-plus-gray-4813505451ce489532e3.svg +16 -0
- package/build/index.html +1 -0
- package/build/legacyVideos.574a0715.chunk.js +1 -0
- package/build/main.5d860546610c849e0659.css +6635 -0
- package/build/main.b293d864.js +244 -0
- package/build/public/locales/ar/translation.json +1919 -0
- package/build/public/locales/bg/translation.json +2011 -0
- package/build/public/locales/bs/translation.json +2011 -0
- package/build/public/locales/cs/translation.json +1942 -0
- package/build/public/locales/de/translation.json +1924 -0
- package/build/public/locales/en/translation.json +2011 -0
- package/build/public/locales/es/translation.json +1924 -0
- package/build/public/locales/fr/translation.json +1924 -0
- package/build/public/locales/hi/translation.json +2011 -0
- package/build/public/locales/hr/translation.json +2011 -0
- package/build/public/locales/it/translation.json +1922 -0
- package/build/public/locales/ja/translation.json +2006 -0
- package/build/public/locales/ko/translation.json +2011 -0
- package/build/public/locales/pl/translation.json +1919 -0
- package/build/public/locales/pt/translation.json +1925 -0
- package/build/public/locales/ru/translation.json +1919 -0
- package/build/public/locales/sl/translation.json +2010 -0
- package/build/public/locales/tm/translation.json +1924 -0
- package/build/public/locales/uk/translation.json +1919 -0
- package/build/public/locales/vi/translation.json +2011 -0
- package/build/public/locales/zh/translation.json +2011 -0
- package/build/public/logo.svg +10 -0
- package/build/queryString.4399199a.chunk.js +1 -0
- package/build/remoteMiddleware.de005d83.chunk.js +1 -0
- package/build/runtime~main.bbe9595e.js +1 -0
- package/build/schemaFilter.63dfa980.chunk.js +1 -0
- package/build/tsub-middleware.ec450ef0.chunk.js +1281 -0
- package/dist/__fixtures__/data.d.ts +30 -0
- package/dist/__fixtures__/data.js +34 -0
- package/dist/core/__fixtures__/data.d.ts +176 -0
- package/dist/core/__fixtures__/data.js +190 -0
- package/dist/core/__fixtures__/stripe-test.d.ts +6 -0
- package/dist/core/__fixtures__/stripe-test.js +17 -0
- package/dist/core/stripe-subscription.d.ts +36 -0
- package/dist/core/stripe-subscription.js +346 -0
- package/dist/index.js +1 -0
- package/dist/services/stripe-subscription-provider.d.ts +22 -0
- package/dist/services/stripe-subscription-provider.js +61 -0
- package/dist/subscribers/create-product-stripe.d.ts +3 -0
- package/dist/subscribers/create-product-stripe.js +18 -0
- package/dist/subscribers/delete-product-stripe.d.ts +3 -0
- package/dist/subscribers/delete-product-stripe.js +18 -0
- package/dist/subscribers/stripe-event.d.ts +4 -0
- package/dist/subscribers/stripe-event.js +17 -0
- package/dist/subscribers/update-product-stripe.d.ts +3 -0
- package/dist/subscribers/update-product-stripe.js +14 -0
- package/{src/types/index.ts → dist/types/index.d.ts} +3 -5
- package/dist/types/index.js +3 -0
- package/dist/utils/handle-customer-subscription.d.ts +9 -0
- package/dist/utils/handle-customer-subscription.js +18 -0
- package/dist/utils/handle-invoice-subscription.d.ts +9 -0
- package/dist/utils/handle-invoice-subscription.js +29 -0
- package/dist/utils/handle-subscription.d.ts +9 -0
- package/dist/utils/handle-subscription.js +46 -0
- package/dist/utils/index.d.ts +24 -0
- package/dist/utils/index.js +102 -0
- package/package.json +1 -1
- package/src/__fixtures__/data.ts +0 -30
- package/src/__mocks__/stripe.ts +0 -104
- package/src/api/README.md +0 -179
- package/src/core/__fixtures__/data.ts +0 -225
- package/src/core/__fixtures__/stripe-test.ts +0 -12
- package/src/core/__tests__/stripe-base.spec.ts +0 -640
- package/src/core/stripe-subscription.ts +0 -523
- package/src/jobs/README.md +0 -32
- package/src/loaders/README.md +0 -19
- package/src/migrations/README.md +0 -29
- package/src/models/README.md +0 -46
- package/src/services/README.md +0 -49
- package/src/services/stripe-subscription-provider.ts +0 -83
- package/src/subscribers/README.md +0 -44
- package/src/subscribers/create-product-stripe.ts +0 -23
- package/src/subscribers/delete-product-stripe.ts +0 -24
- package/src/subscribers/stripe-event.ts +0 -24
- package/src/subscribers/update-product-stripe.ts +0 -23
- package/src/utils/handle-customer-subscription.ts +0 -36
- package/src/utils/handle-invoice-subscription.ts +0 -54
- package/src/utils/handle-subscription.ts +0 -64
- package/src/utils/index.ts +0 -143
- /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>
|