@smartytalent/api-client 0.7.5 → 0.7.6
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.
|
@@ -63,6 +63,20 @@ export interface NotificationAttributesSchema {
|
|
|
63
63
|
* @memberof NotificationAttributesSchema
|
|
64
64
|
*/
|
|
65
65
|
avatarColor?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Identifier of the message to render, e.g. `user.pendingApproval`. The bell looks it up in the client's own dictionaries and substitutes messageParams, so the sentence is produced in whatever language the reader has set AT DISPLAY TIME - switching language re-renders the whole history, and adding a platform language needs no backend change and no migration of stored rows. Same shape the mobile platforms use natively (APNs loc-key/loc-args, FCM loc_key/loc_args). Absent on producers that have not migrated yet; `title`/`subtitle` remain the English fallback, so a client that does not recognise a key must fall back to them rather than render nothing.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof NotificationAttributesSchema
|
|
70
|
+
*/
|
|
71
|
+
readonly messageKey?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Variable parts of the message, substituted into the dictionary entry for messageKey - e.g. {name, email} for `user.pendingApproval`. Names must match what the client dictionary expects: a mismatch surfaces as an untranslated placeholder, so the agreed keys and parameter names belong in the FE task, not in tribal memory.
|
|
74
|
+
* @type {{ [key: string]: any; }}
|
|
75
|
+
* @memberof NotificationAttributesSchema
|
|
76
|
+
*/
|
|
77
|
+
readonly messageParams?: {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
};
|
|
66
80
|
/**
|
|
67
81
|
* Creation timestamp
|
|
68
82
|
* @type {Date}
|
|
@@ -103,5 +117,5 @@ export declare function instanceOfNotificationAttributesSchema(value: object): v
|
|
|
103
117
|
export declare function NotificationAttributesSchemaFromJSON(json: any): NotificationAttributesSchema;
|
|
104
118
|
export declare function NotificationAttributesSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationAttributesSchema;
|
|
105
119
|
export declare function NotificationAttributesSchemaToJSON(json: any): NotificationAttributesSchema;
|
|
106
|
-
export declare function NotificationAttributesSchemaToJSONTyped(value?: NotificationAttributesSchema | null, ignoreDiscriminator?: boolean): any;
|
|
120
|
+
export declare function NotificationAttributesSchemaToJSONTyped(value?: Omit<NotificationAttributesSchema, 'messageKey' | 'messageParams'> | null, ignoreDiscriminator?: boolean): any;
|
|
107
121
|
//# sourceMappingURL=NotificationAttributesSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationAttributesSchema.d.ts","sourceRoot":"","sources":["../../src/models/NotificationAttributesSchema.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,wCAAwC,CAAC;IACpD;;;;OAIG;IACH,MAAM,CAAC,EAAE,sCAAsC,CAAC;IAChD;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;;;;;CAO3C,CAAC;AACX,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAC,MAAM,OAAO,wCAAwC,CAAC,CAAC;AAE9J;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;CAGzC,CAAC;AACX,MAAM,MAAM,sCAAsC,GAAG,OAAO,sCAAsC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC;AAGxJ;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAG3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,
|
|
1
|
+
{"version":3,"file":"NotificationAttributesSchema.d.ts","sourceRoot":"","sources":["../../src/models/NotificationAttributesSchema.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,wCAAwC,CAAC;IACpD;;;;OAIG;IACH,MAAM,CAAC,EAAE,sCAAsC,CAAC;IAChD;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;;;;;CAO3C,CAAC;AACX,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAC,MAAM,OAAO,wCAAwC,CAAC,CAAC;AAE9J;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;CAGzC,CAAC;AACX,MAAM,MAAM,sCAAsC,GAAG,OAAO,sCAAsC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC;AAGxJ;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAG3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAmB/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,4BAA4B,EAAE,YAAY,GAAC,eAAe,CAAC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkBlL"}
|
|
@@ -61,6 +61,8 @@ function NotificationAttributesSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'avatarText': json['avatarText'] == null ? undefined : json['avatarText'],
|
|
62
62
|
'avatarImage': json['avatarImage'] == null ? undefined : json['avatarImage'],
|
|
63
63
|
'avatarColor': json['avatarColor'] == null ? undefined : json['avatarColor'],
|
|
64
|
+
'messageKey': json['messageKey'] == null ? undefined : json['messageKey'],
|
|
65
|
+
'messageParams': json['messageParams'] == null ? undefined : json['messageParams'],
|
|
64
66
|
'created': json['created'] == null ? undefined : (new Date(json['created'])),
|
|
65
67
|
'modified': json['modified'] == null ? undefined : (new Date(json['modified'])),
|
|
66
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationAttributesSchema.js","sourceRoot":"","sources":["../../src/models/NotificationAttributesSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"NotificationAttributesSchema.js","sourceRoot":"","sources":["../../src/models/NotificationAttributesSchema.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA8GH,wFAGC;AAED,oFAEC;AAED,8FAmBC;AAED,gFAEC;AAED,0FAkBC;AA9ED;;GAEG;AACU,QAAA,wCAAwC,GAAG;IACpD,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;CAClB,CAAC;AAGX;;GAEG;AACU,QAAA,sCAAsC,GAAG;IAClD,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX;;GAEG;AACH,SAAgB,sCAAsC,CAAC,KAAa;IAChE,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,IAAS,EAAE,mBAA4B;IAC7F,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,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACnE,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;Q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