@emilgroup/discount-sdk 1.4.1-beta.0 → 1.5.1

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 (150) hide show
  1. package/README.md +2 -2
  2. package/index.js +99 -0
  3. package/package.json +8 -21
  4. package/scripts/deploy.js +225 -0
  5. package/.openapi-generator/FILES +0 -54
  6. package/.openapi-generator/VERSION +0 -1
  7. package/.openapi-generator-ignore +0 -23
  8. package/api/campaigns-api.ts +0 -1433
  9. package/api/default-api.ts +0 -124
  10. package/api/policy-vouchers-api.ts +0 -999
  11. package/api/vouchers-api.ts +0 -691
  12. package/api.ts +0 -33
  13. package/base.ts +0 -331
  14. package/common.ts +0 -198
  15. package/configuration.ts +0 -110
  16. package/dist/api/campaigns-api.d.ts +0 -808
  17. package/dist/api/campaigns-api.js +0 -1251
  18. package/dist/api/default-api.d.ts +0 -70
  19. package/dist/api/default-api.js +0 -200
  20. package/dist/api/policy-vouchers-api.d.ts +0 -555
  21. package/dist/api/policy-vouchers-api.js +0 -915
  22. package/dist/api/vouchers-api.d.ts +0 -393
  23. package/dist/api/vouchers-api.js +0 -642
  24. package/dist/api.d.ts +0 -15
  25. package/dist/api.js +0 -33
  26. package/dist/base.d.ts +0 -86
  27. package/dist/base.js +0 -367
  28. package/dist/common.d.ts +0 -91
  29. package/dist/common.js +0 -276
  30. package/dist/configuration.d.ts +0 -89
  31. package/dist/configuration.js +0 -52
  32. package/dist/index.d.ts +0 -15
  33. package/dist/index.js +0 -36
  34. package/dist/models/campaign-class.d.ts +0 -105
  35. package/dist/models/campaign-class.js +0 -24
  36. package/dist/models/charge-policy-voucher-request-dto.d.ts +0 -48
  37. package/dist/models/charge-policy-voucher-request-dto.js +0 -15
  38. package/dist/models/charge-policy-voucher-response-class.d.ts +0 -96
  39. package/dist/models/charge-policy-voucher-response-class.js +0 -21
  40. package/dist/models/check-account-eligibility-request-dto.d.ts +0 -48
  41. package/dist/models/check-account-eligibility-request-dto.js +0 -15
  42. package/dist/models/check-account-eligibility-response-class.d.ts +0 -57
  43. package/dist/models/check-account-eligibility-response-class.js +0 -24
  44. package/dist/models/create-campaign-request-dto.d.ts +0 -42
  45. package/dist/models/create-campaign-request-dto.js +0 -15
  46. package/dist/models/create-campaign-response-class.d.ts +0 -25
  47. package/dist/models/create-campaign-response-class.js +0 -15
  48. package/dist/models/create-eligible-account-request-dto.d.ts +0 -30
  49. package/dist/models/create-eligible-account-request-dto.js +0 -15
  50. package/dist/models/create-eligible-account-response-class.d.ts +0 -25
  51. package/dist/models/create-eligible-account-response-class.js +0 -15
  52. package/dist/models/create-policy-voucher-request-dto.d.ts +0 -48
  53. package/dist/models/create-policy-voucher-request-dto.js +0 -15
  54. package/dist/models/create-policy-voucher-response-class.d.ts +0 -25
  55. package/dist/models/create-policy-voucher-response-class.js +0 -15
  56. package/dist/models/create-product-discount-dto.d.ts +0 -48
  57. package/dist/models/create-product-discount-dto.js +0 -15
  58. package/dist/models/create-voucher-request-dto.d.ts +0 -66
  59. package/dist/models/create-voucher-request-dto.js +0 -20
  60. package/dist/models/create-voucher-response-class.d.ts +0 -25
  61. package/dist/models/create-voucher-response-class.js +0 -15
  62. package/dist/models/eligible-account-class.d.ts +0 -78
  63. package/dist/models/eligible-account-class.js +0 -15
  64. package/dist/models/get-campaign-response-class.d.ts +0 -25
  65. package/dist/models/get-campaign-response-class.js +0 -15
  66. package/dist/models/get-policy-voucher-response-class.d.ts +0 -25
  67. package/dist/models/get-policy-voucher-response-class.js +0 -15
  68. package/dist/models/get-voucher-response-class.d.ts +0 -25
  69. package/dist/models/get-voucher-response-class.js +0 -15
  70. package/dist/models/index.d.ts +0 -37
  71. package/dist/models/index.js +0 -53
  72. package/dist/models/inline-response200.d.ts +0 -54
  73. package/dist/models/inline-response200.js +0 -15
  74. package/dist/models/inline-response503.d.ts +0 -54
  75. package/dist/models/inline-response503.js +0 -15
  76. package/dist/models/list-campaigns-response-class.d.ts +0 -43
  77. package/dist/models/list-campaigns-response-class.js +0 -15
  78. package/dist/models/list-eligible-accounts-response-class.d.ts +0 -43
  79. package/dist/models/list-eligible-accounts-response-class.js +0 -15
  80. package/dist/models/list-policy-vouchers-response-class.d.ts +0 -43
  81. package/dist/models/list-policy-vouchers-response-class.js +0 -15
  82. package/dist/models/list-vouchers-response-class.d.ts +0 -43
  83. package/dist/models/list-vouchers-response-class.js +0 -15
  84. package/dist/models/policy-voucher-class.d.ts +0 -165
  85. package/dist/models/policy-voucher-class.js +0 -21
  86. package/dist/models/policy-voucher-transaction-class.d.ts +0 -126
  87. package/dist/models/policy-voucher-transaction-class.js +0 -26
  88. package/dist/models/product-discount-class.d.ts +0 -90
  89. package/dist/models/product-discount-class.js +0 -15
  90. package/dist/models/redeem-policy-voucher-request-dto.d.ts +0 -48
  91. package/dist/models/redeem-policy-voucher-request-dto.js +0 -15
  92. package/dist/models/redeem-policy-voucher-response-class.d.ts +0 -84
  93. package/dist/models/redeem-policy-voucher-response-class.js +0 -21
  94. package/dist/models/update-campaign-request-dto.d.ts +0 -42
  95. package/dist/models/update-campaign-request-dto.js +0 -15
  96. package/dist/models/update-campaign-response-class.d.ts +0 -25
  97. package/dist/models/update-campaign-response-class.js +0 -15
  98. package/dist/models/update-campaign-status-request-dto.d.ts +0 -33
  99. package/dist/models/update-campaign-status-request-dto.js +0 -24
  100. package/dist/models/update-voucher-request-dto.d.ts +0 -60
  101. package/dist/models/update-voucher-request-dto.js +0 -20
  102. package/dist/models/update-voucher-response-class.d.ts +0 -25
  103. package/dist/models/update-voucher-response-class.js +0 -15
  104. package/dist/models/voucher-class.d.ts +0 -127
  105. package/dist/models/voucher-class.js +0 -20
  106. package/dist/models/withdraw-policy-voucher-request-dto.d.ts +0 -36
  107. package/dist/models/withdraw-policy-voucher-request-dto.js +0 -15
  108. package/dist/models/withdraw-policy-voucher-response-class.d.ts +0 -78
  109. package/dist/models/withdraw-policy-voucher-response-class.js +0 -21
  110. package/git_push.sh +0 -57
  111. package/index.ts +0 -19
  112. package/models/campaign-class.ts +0 -114
  113. package/models/charge-policy-voucher-request-dto.ts +0 -54
  114. package/models/charge-policy-voucher-response-class.ts +0 -105
  115. package/models/check-account-eligibility-request-dto.ts +0 -54
  116. package/models/check-account-eligibility-response-class.ts +0 -66
  117. package/models/create-campaign-request-dto.ts +0 -48
  118. package/models/create-campaign-response-class.ts +0 -31
  119. package/models/create-eligible-account-request-dto.ts +0 -36
  120. package/models/create-eligible-account-response-class.ts +0 -31
  121. package/models/create-policy-voucher-request-dto.ts +0 -54
  122. package/models/create-policy-voucher-response-class.ts +0 -31
  123. package/models/create-product-discount-dto.ts +0 -54
  124. package/models/create-voucher-request-dto.ts +0 -75
  125. package/models/create-voucher-response-class.ts +0 -31
  126. package/models/eligible-account-class.ts +0 -84
  127. package/models/get-campaign-response-class.ts +0 -31
  128. package/models/get-policy-voucher-response-class.ts +0 -31
  129. package/models/get-voucher-response-class.ts +0 -31
  130. package/models/index.ts +0 -37
  131. package/models/inline-response200.ts +0 -48
  132. package/models/inline-response503.ts +0 -48
  133. package/models/list-campaigns-response-class.ts +0 -49
  134. package/models/list-eligible-accounts-response-class.ts +0 -49
  135. package/models/list-policy-vouchers-response-class.ts +0 -49
  136. package/models/list-vouchers-response-class.ts +0 -49
  137. package/models/policy-voucher-class.ts +0 -174
  138. package/models/policy-voucher-transaction-class.ts +0 -136
  139. package/models/product-discount-class.ts +0 -96
  140. package/models/redeem-policy-voucher-request-dto.ts +0 -54
  141. package/models/redeem-policy-voucher-response-class.ts +0 -93
  142. package/models/update-campaign-request-dto.ts +0 -48
  143. package/models/update-campaign-response-class.ts +0 -31
  144. package/models/update-campaign-status-request-dto.ts +0 -42
  145. package/models/update-voucher-request-dto.ts +0 -69
  146. package/models/update-voucher-response-class.ts +0 -31
  147. package/models/voucher-class.ts +0 -136
  148. package/models/withdraw-policy-voucher-request-dto.ts +0 -42
  149. package/models/withdraw-policy-voucher-response-class.ts +0 -87
  150. package/tsconfig.json +0 -23
@@ -1,124 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL DiscountService
5
- * The EMIL DiscountService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { InlineResponse200 } from '../models';
25
- // @ts-ignore
26
- import { InlineResponse503 } from '../models';
27
- /**
28
- * DefaultApi - axios parameter creator
29
- * @export
30
- */
31
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * Returns the health status of the DiscountService service. This endpoint is used to monitor the operational status of the DiscountService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
35
- * @summary Health Check
36
- * @param {*} [options] Override http request option.
37
- * @throws {RequiredError}
38
- */
39
- check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40
- const localVarPath = `/discountservice/health`;
41
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43
- let baseOptions;
44
- let baseAccessToken;
45
- if (configuration) {
46
- baseOptions = configuration.baseOptions;
47
- baseAccessToken = configuration.accessToken;
48
- }
49
-
50
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
51
- const localVarHeaderParameter = {} as any;
52
- const localVarQueryParameter = {} as any;
53
-
54
-
55
-
56
- setSearchParams(localVarUrlObj, localVarQueryParameter);
57
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
59
-
60
- return {
61
- url: toPathString(localVarUrlObj),
62
- options: localVarRequestOptions,
63
- };
64
- },
65
- }
66
- };
67
-
68
- /**
69
- * DefaultApi - functional programming interface
70
- * @export
71
- */
72
- export const DefaultApiFp = function(configuration?: Configuration) {
73
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
74
- return {
75
- /**
76
- * Returns the health status of the DiscountService service. This endpoint is used to monitor the operational status of the DiscountService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
77
- * @summary Health Check
78
- * @param {*} [options] Override http request option.
79
- * @throws {RequiredError}
80
- */
81
- async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
82
- const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
83
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
84
- },
85
- }
86
- };
87
-
88
- /**
89
- * DefaultApi - factory interface
90
- * @export
91
- */
92
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
93
- const localVarFp = DefaultApiFp(configuration)
94
- return {
95
- /**
96
- * Returns the health status of the DiscountService service. This endpoint is used to monitor the operational status of the DiscountService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
97
- * @summary Health Check
98
- * @param {*} [options] Override http request option.
99
- * @throws {RequiredError}
100
- */
101
- check(options?: any): AxiosPromise<InlineResponse200> {
102
- return localVarFp.check(options).then((request) => request(axios, basePath));
103
- },
104
- };
105
- };
106
-
107
- /**
108
- * DefaultApi - object-oriented interface
109
- * @export
110
- * @class DefaultApi
111
- * @extends {BaseAPI}
112
- */
113
- export class DefaultApi extends BaseAPI {
114
- /**
115
- * Returns the health status of the DiscountService service. This endpoint is used to monitor the operational status of the DiscountService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
116
- * @summary Health Check
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- * @memberof DefaultApi
120
- */
121
- public check(options?: AxiosRequestConfig) {
122
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
123
- }
124
- }