tuix-subscription-service-client 0.0.8 → 0.0.10
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/docs/CreateSubscriptionDTO.md +2 -2
- package/docs/SendNewsletterDTO.md +1 -1
- package/models/CreateSubscriptionDTO.js +16 -2
- package/models/CreateSubscriptionDTO.js.map +1 -1
- package/models/CreateSubscriptionDTO.ts +19 -4
- package/models/SendNewsletterDTO.js +3 -1
- package/models/SendNewsletterDTO.js.map +1 -1
- package/models/SendNewsletterDTO.ts +3 -2
- package/package.json +1 -1
|
@@ -16,8 +16,8 @@ import type { CreateSubscriptionDTO } from ''
|
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
|
-
"email":
|
|
20
|
-
"language":
|
|
19
|
+
"email": test@example.com,
|
|
20
|
+
"language": en,
|
|
21
21
|
} satisfies CreateSubscriptionDTO
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
@@ -13,15 +13,29 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateSubscriptionDTOLanguageEnum = void 0;
|
|
16
17
|
exports.instanceOfCreateSubscriptionDTO = instanceOfCreateSubscriptionDTO;
|
|
17
18
|
exports.CreateSubscriptionDTOFromJSON = CreateSubscriptionDTOFromJSON;
|
|
18
19
|
exports.CreateSubscriptionDTOFromJSONTyped = CreateSubscriptionDTOFromJSONTyped;
|
|
19
20
|
exports.CreateSubscriptionDTOToJSON = CreateSubscriptionDTOToJSON;
|
|
20
21
|
exports.CreateSubscriptionDTOToJSONTyped = CreateSubscriptionDTOToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateSubscriptionDTOLanguageEnum = {
|
|
26
|
+
En: 'en',
|
|
27
|
+
De: 'de',
|
|
28
|
+
EnUs: 'en-US',
|
|
29
|
+
DeDe: 'de-DE'
|
|
30
|
+
};
|
|
21
31
|
/**
|
|
22
32
|
* Check if a given object implements the CreateSubscriptionDTO interface.
|
|
23
33
|
*/
|
|
24
34
|
function instanceOfCreateSubscriptionDTO(value) {
|
|
35
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('language' in value) || value['language'] === undefined)
|
|
38
|
+
return false;
|
|
25
39
|
return true;
|
|
26
40
|
}
|
|
27
41
|
function CreateSubscriptionDTOFromJSON(json) {
|
|
@@ -32,8 +46,8 @@ function CreateSubscriptionDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
46
|
return json;
|
|
33
47
|
}
|
|
34
48
|
return {
|
|
35
|
-
'email': json['email']
|
|
36
|
-
'language': json['language']
|
|
49
|
+
'email': json['email'],
|
|
50
|
+
'language': json['language'],
|
|
37
51
|
};
|
|
38
52
|
}
|
|
39
53
|
function CreateSubscriptionDTOToJSON(json) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSubscriptionDTO.js","sourceRoot":"","sources":["CreateSubscriptionDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG
|
|
1
|
+
{"version":3,"file":"CreateSubscriptionDTO.js","sourceRoot":"","sources":["CreateSubscriptionDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuCH,0EAIC;AAED,sEAEC;AAED,gFASC;AAED,kEAEC;AAED,4EAUC;AAlDD;;GAEG;AACU,QAAA,iCAAiC,GAAG;IAC7C,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;CACP,CAAC;AAIX;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"}
|
|
@@ -24,19 +24,34 @@ export interface CreateSubscriptionDTO {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CreateSubscriptionDTO
|
|
26
26
|
*/
|
|
27
|
-
email
|
|
27
|
+
email: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CreateSubscriptionDTO
|
|
32
32
|
*/
|
|
33
|
-
language
|
|
33
|
+
language: CreateSubscriptionDTOLanguageEnum;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const CreateSubscriptionDTOLanguageEnum = {
|
|
41
|
+
En: 'en',
|
|
42
|
+
De: 'de',
|
|
43
|
+
EnUs: 'en-US',
|
|
44
|
+
DeDe: 'de-DE'
|
|
45
|
+
} as const;
|
|
46
|
+
export type CreateSubscriptionDTOLanguageEnum = typeof CreateSubscriptionDTOLanguageEnum[keyof typeof CreateSubscriptionDTOLanguageEnum];
|
|
47
|
+
|
|
48
|
+
|
|
36
49
|
/**
|
|
37
50
|
* Check if a given object implements the CreateSubscriptionDTO interface.
|
|
38
51
|
*/
|
|
39
52
|
export function instanceOfCreateSubscriptionDTO(value: object): value is CreateSubscriptionDTO {
|
|
53
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
54
|
+
if (!('language' in value) || value['language'] === undefined) return false;
|
|
40
55
|
return true;
|
|
41
56
|
}
|
|
42
57
|
|
|
@@ -50,8 +65,8 @@ export function CreateSubscriptionDTOFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
50
65
|
}
|
|
51
66
|
return {
|
|
52
67
|
|
|
53
|
-
'email': json['email']
|
|
54
|
-
'language': json['language']
|
|
68
|
+
'email': json['email'],
|
|
69
|
+
'language': json['language'],
|
|
55
70
|
};
|
|
56
71
|
}
|
|
57
72
|
|
|
@@ -22,6 +22,8 @@ exports.SendNewsletterDTOToJSONTyped = SendNewsletterDTOToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the SendNewsletterDTO interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfSendNewsletterDTO(value) {
|
|
25
|
+
if (!('templateId' in value) || value['templateId'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
function SendNewsletterDTOFromJSON(json) {
|
|
@@ -32,7 +34,7 @@ function SendNewsletterDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
|
-
'templateId': json['templateId']
|
|
37
|
+
'templateId': json['templateId'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
function SendNewsletterDTOToJSON(json) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendNewsletterDTO.js","sourceRoot":"","sources":["SendNewsletterDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,
|
|
1
|
+
{"version":3,"file":"SendNewsletterDTO.js","sourceRoot":"","sources":["SendNewsletterDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,kEAGC;AAED,8DAEC;AAED,wEAQC;AAED,0DAEC;AAED,oEASC;AAnCD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;KACnC,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;KACpC,CAAC;AACN,CAAC"}
|
|
@@ -24,13 +24,14 @@ export interface SendNewsletterDTO {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof SendNewsletterDTO
|
|
26
26
|
*/
|
|
27
|
-
templateId
|
|
27
|
+
templateId: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the SendNewsletterDTO interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfSendNewsletterDTO(value: object): value is SendNewsletterDTO {
|
|
34
|
+
if (!('templateId' in value) || value['templateId'] === undefined) return false;
|
|
34
35
|
return true;
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -44,7 +45,7 @@ export function SendNewsletterDTOFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
|
|
47
|
-
'templateId': json['templateId']
|
|
48
|
+
'templateId': json['templateId'],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
|