@emilgroup/discount-sdk 1.5.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 (149) hide show
  1. package/index.js +99 -0
  2. package/package.json +8 -21
  3. package/scripts/deploy.js +225 -0
  4. package/.openapi-generator/FILES +0 -54
  5. package/.openapi-generator/VERSION +0 -1
  6. package/.openapi-generator-ignore +0 -23
  7. package/api/campaigns-api.ts +0 -1433
  8. package/api/default-api.ts +0 -124
  9. package/api/policy-vouchers-api.ts +0 -999
  10. package/api/vouchers-api.ts +0 -691
  11. package/api.ts +0 -33
  12. package/base.ts +0 -331
  13. package/common.ts +0 -198
  14. package/configuration.ts +0 -110
  15. package/dist/api/campaigns-api.d.ts +0 -808
  16. package/dist/api/campaigns-api.js +0 -1251
  17. package/dist/api/default-api.d.ts +0 -70
  18. package/dist/api/default-api.js +0 -200
  19. package/dist/api/policy-vouchers-api.d.ts +0 -555
  20. package/dist/api/policy-vouchers-api.js +0 -915
  21. package/dist/api/vouchers-api.d.ts +0 -393
  22. package/dist/api/vouchers-api.js +0 -642
  23. package/dist/api.d.ts +0 -15
  24. package/dist/api.js +0 -33
  25. package/dist/base.d.ts +0 -86
  26. package/dist/base.js +0 -367
  27. package/dist/common.d.ts +0 -91
  28. package/dist/common.js +0 -276
  29. package/dist/configuration.d.ts +0 -89
  30. package/dist/configuration.js +0 -52
  31. package/dist/index.d.ts +0 -15
  32. package/dist/index.js +0 -36
  33. package/dist/models/campaign-class.d.ts +0 -105
  34. package/dist/models/campaign-class.js +0 -24
  35. package/dist/models/charge-policy-voucher-request-dto.d.ts +0 -48
  36. package/dist/models/charge-policy-voucher-request-dto.js +0 -15
  37. package/dist/models/charge-policy-voucher-response-class.d.ts +0 -96
  38. package/dist/models/charge-policy-voucher-response-class.js +0 -21
  39. package/dist/models/check-account-eligibility-request-dto.d.ts +0 -48
  40. package/dist/models/check-account-eligibility-request-dto.js +0 -15
  41. package/dist/models/check-account-eligibility-response-class.d.ts +0 -57
  42. package/dist/models/check-account-eligibility-response-class.js +0 -24
  43. package/dist/models/create-campaign-request-dto.d.ts +0 -42
  44. package/dist/models/create-campaign-request-dto.js +0 -15
  45. package/dist/models/create-campaign-response-class.d.ts +0 -25
  46. package/dist/models/create-campaign-response-class.js +0 -15
  47. package/dist/models/create-eligible-account-request-dto.d.ts +0 -30
  48. package/dist/models/create-eligible-account-request-dto.js +0 -15
  49. package/dist/models/create-eligible-account-response-class.d.ts +0 -25
  50. package/dist/models/create-eligible-account-response-class.js +0 -15
  51. package/dist/models/create-policy-voucher-request-dto.d.ts +0 -48
  52. package/dist/models/create-policy-voucher-request-dto.js +0 -15
  53. package/dist/models/create-policy-voucher-response-class.d.ts +0 -25
  54. package/dist/models/create-policy-voucher-response-class.js +0 -15
  55. package/dist/models/create-product-discount-dto.d.ts +0 -48
  56. package/dist/models/create-product-discount-dto.js +0 -15
  57. package/dist/models/create-voucher-request-dto.d.ts +0 -66
  58. package/dist/models/create-voucher-request-dto.js +0 -20
  59. package/dist/models/create-voucher-response-class.d.ts +0 -25
  60. package/dist/models/create-voucher-response-class.js +0 -15
  61. package/dist/models/eligible-account-class.d.ts +0 -78
  62. package/dist/models/eligible-account-class.js +0 -15
  63. package/dist/models/get-campaign-response-class.d.ts +0 -25
  64. package/dist/models/get-campaign-response-class.js +0 -15
  65. package/dist/models/get-policy-voucher-response-class.d.ts +0 -25
  66. package/dist/models/get-policy-voucher-response-class.js +0 -15
  67. package/dist/models/get-voucher-response-class.d.ts +0 -25
  68. package/dist/models/get-voucher-response-class.js +0 -15
  69. package/dist/models/index.d.ts +0 -37
  70. package/dist/models/index.js +0 -53
  71. package/dist/models/inline-response200.d.ts +0 -54
  72. package/dist/models/inline-response200.js +0 -15
  73. package/dist/models/inline-response503.d.ts +0 -54
  74. package/dist/models/inline-response503.js +0 -15
  75. package/dist/models/list-campaigns-response-class.d.ts +0 -43
  76. package/dist/models/list-campaigns-response-class.js +0 -15
  77. package/dist/models/list-eligible-accounts-response-class.d.ts +0 -43
  78. package/dist/models/list-eligible-accounts-response-class.js +0 -15
  79. package/dist/models/list-policy-vouchers-response-class.d.ts +0 -43
  80. package/dist/models/list-policy-vouchers-response-class.js +0 -15
  81. package/dist/models/list-vouchers-response-class.d.ts +0 -43
  82. package/dist/models/list-vouchers-response-class.js +0 -15
  83. package/dist/models/policy-voucher-class.d.ts +0 -165
  84. package/dist/models/policy-voucher-class.js +0 -21
  85. package/dist/models/policy-voucher-transaction-class.d.ts +0 -126
  86. package/dist/models/policy-voucher-transaction-class.js +0 -26
  87. package/dist/models/product-discount-class.d.ts +0 -90
  88. package/dist/models/product-discount-class.js +0 -15
  89. package/dist/models/redeem-policy-voucher-request-dto.d.ts +0 -48
  90. package/dist/models/redeem-policy-voucher-request-dto.js +0 -15
  91. package/dist/models/redeem-policy-voucher-response-class.d.ts +0 -84
  92. package/dist/models/redeem-policy-voucher-response-class.js +0 -21
  93. package/dist/models/update-campaign-request-dto.d.ts +0 -42
  94. package/dist/models/update-campaign-request-dto.js +0 -15
  95. package/dist/models/update-campaign-response-class.d.ts +0 -25
  96. package/dist/models/update-campaign-response-class.js +0 -15
  97. package/dist/models/update-campaign-status-request-dto.d.ts +0 -33
  98. package/dist/models/update-campaign-status-request-dto.js +0 -24
  99. package/dist/models/update-voucher-request-dto.d.ts +0 -60
  100. package/dist/models/update-voucher-request-dto.js +0 -20
  101. package/dist/models/update-voucher-response-class.d.ts +0 -25
  102. package/dist/models/update-voucher-response-class.js +0 -15
  103. package/dist/models/voucher-class.d.ts +0 -127
  104. package/dist/models/voucher-class.js +0 -20
  105. package/dist/models/withdraw-policy-voucher-request-dto.d.ts +0 -36
  106. package/dist/models/withdraw-policy-voucher-request-dto.js +0 -15
  107. package/dist/models/withdraw-policy-voucher-response-class.d.ts +0 -78
  108. package/dist/models/withdraw-policy-voucher-response-class.js +0 -21
  109. package/git_push.sh +0 -57
  110. package/index.ts +0 -19
  111. package/models/campaign-class.ts +0 -114
  112. package/models/charge-policy-voucher-request-dto.ts +0 -54
  113. package/models/charge-policy-voucher-response-class.ts +0 -105
  114. package/models/check-account-eligibility-request-dto.ts +0 -54
  115. package/models/check-account-eligibility-response-class.ts +0 -66
  116. package/models/create-campaign-request-dto.ts +0 -48
  117. package/models/create-campaign-response-class.ts +0 -31
  118. package/models/create-eligible-account-request-dto.ts +0 -36
  119. package/models/create-eligible-account-response-class.ts +0 -31
  120. package/models/create-policy-voucher-request-dto.ts +0 -54
  121. package/models/create-policy-voucher-response-class.ts +0 -31
  122. package/models/create-product-discount-dto.ts +0 -54
  123. package/models/create-voucher-request-dto.ts +0 -75
  124. package/models/create-voucher-response-class.ts +0 -31
  125. package/models/eligible-account-class.ts +0 -84
  126. package/models/get-campaign-response-class.ts +0 -31
  127. package/models/get-policy-voucher-response-class.ts +0 -31
  128. package/models/get-voucher-response-class.ts +0 -31
  129. package/models/index.ts +0 -37
  130. package/models/inline-response200.ts +0 -48
  131. package/models/inline-response503.ts +0 -48
  132. package/models/list-campaigns-response-class.ts +0 -49
  133. package/models/list-eligible-accounts-response-class.ts +0 -49
  134. package/models/list-policy-vouchers-response-class.ts +0 -49
  135. package/models/list-vouchers-response-class.ts +0 -49
  136. package/models/policy-voucher-class.ts +0 -174
  137. package/models/policy-voucher-transaction-class.ts +0 -136
  138. package/models/product-discount-class.ts +0 -96
  139. package/models/redeem-policy-voucher-request-dto.ts +0 -54
  140. package/models/redeem-policy-voucher-response-class.ts +0 -93
  141. package/models/update-campaign-request-dto.ts +0 -48
  142. package/models/update-campaign-response-class.ts +0 -31
  143. package/models/update-campaign-status-request-dto.ts +0 -42
  144. package/models/update-voucher-request-dto.ts +0 -69
  145. package/models/update-voucher-response-class.ts +0 -31
  146. package/models/voucher-class.ts +0 -136
  147. package/models/withdraw-policy-voucher-request-dto.ts +0 -42
  148. package/models/withdraw-policy-voucher-response-class.ts +0 -87
  149. 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
- }