@fragus/sam-types 1.2.16 → 1.2.18
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/package.json
CHANGED
|
@@ -11,6 +11,10 @@ export interface DashboardBannerRequest {
|
|
|
11
11
|
*/
|
|
12
12
|
countryIso?: TIsoCountry | null
|
|
13
13
|
contractProviderGroupId?: number | null
|
|
14
|
+
/**
|
|
15
|
+
* An https link (a campaign or information page) that Admin shows as a QR code under the text; null for none.
|
|
16
|
+
*/
|
|
17
|
+
qrUrl?: string | null
|
|
14
18
|
/**
|
|
15
19
|
* ISO date string (YYYY-MM-DD) for the start date of the banner
|
|
16
20
|
*/
|
|
@@ -36,4 +40,5 @@ export interface DashboardBannerResponse extends DashboardBannerRequest {
|
|
|
36
40
|
*/
|
|
37
41
|
export interface ProviderDashboardBannerResponse {
|
|
38
42
|
text: string
|
|
43
|
+
qrUrl: string | null
|
|
39
44
|
}
|
package/types/priceSign.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { TIsoCountry } from './country'
|
|
2
2
|
|
|
3
|
-
export type TPriceSignMonths = number
|
|
4
|
-
|
|
5
3
|
export type TPriceSignFormat = 'pdf' | 'png' | 'jpeg'
|
|
6
4
|
|
|
7
5
|
/** Limits the api enforces on templates and setups; Superadmin builds its forms from them. */
|
|
@@ -15,11 +13,11 @@ export interface IPriceSignLimits {
|
|
|
15
13
|
maxPeriodsWithMaxTiers: number
|
|
16
14
|
countries: TIsoCountry[]
|
|
17
15
|
/** Durations offered as one-click picks; any other whole month in range can still be added. */
|
|
18
|
-
quickPickMonths:
|
|
16
|
+
quickPickMonths: number[]
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
export interface IPriceSignPeriod {
|
|
22
|
-
months:
|
|
20
|
+
months: number
|
|
23
21
|
suggestedPrice: string
|
|
24
22
|
suggestedSupplements: string[]
|
|
25
23
|
excludedTiers: number[]
|
|
@@ -31,7 +29,7 @@ export interface IPriceSignBenefit {
|
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
export interface IPriceSignDealerPrice {
|
|
34
|
-
months:
|
|
32
|
+
months: number
|
|
35
33
|
price: string
|
|
36
34
|
supplements: string[]
|
|
37
35
|
hidden: boolean
|
|
@@ -158,10 +156,20 @@ export interface IPriceSignRenderRequest {
|
|
|
158
156
|
prices?: IPriceSignDealerPrice[][]
|
|
159
157
|
}
|
|
160
158
|
|
|
159
|
+
/** Body of a template create or update; the api sets the id and the audit fields. */
|
|
160
|
+
export type TPriceSignTemplateRequest = Pick<
|
|
161
|
+
IPriceSignTemplate,
|
|
162
|
+
Exclude<keyof IPriceSignTemplate, 'templateId' | 'updatedBy' | 'updatedAt'>
|
|
163
|
+
>
|
|
164
|
+
|
|
165
|
+
/** Body of a shared content save; the country comes from the url. */
|
|
166
|
+
export type TPriceSignSharedContentRequest = Pick<
|
|
167
|
+
IPriceSignSharedContent,
|
|
168
|
+
Exclude<keyof IPriceSignSharedContent, 'country'>
|
|
169
|
+
>
|
|
170
|
+
|
|
161
171
|
export interface IPriceSignEditorPreviewRequest {
|
|
162
|
-
template:
|
|
163
|
-
templateId?: number
|
|
164
|
-
}
|
|
172
|
+
template: TPriceSignTemplateRequest & { templateId?: number }
|
|
165
173
|
shared?: IPriceSignSharedContent
|
|
166
174
|
setup?: Pick<IPriceSignSetupTemplateRequest, 'tiers' | 'periods'>
|
|
167
175
|
prices?: IPriceSignDealerPrice[]
|