@diia-inhouse/test 6.6.4 → 7.3.0
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/LICENCE.md +59 -59
- package/dist/dbUtilsBuilder.js +116 -0
- package/dist/dbUtilsBuilder.js.map +1 -0
- package/dist/documentsGenerator.js.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/interfaces/documents/foreignPassport.js.map +1 -1
- package/dist/interfaces/documents/index.js.map +1 -1
- package/dist/publicServiceGenerator.js +3 -5
- package/dist/publicServiceGenerator.js.map +1 -1
- package/dist/sessionGenerator.js +7 -24
- package/dist/sessionGenerator.js.map +1 -1
- package/dist/stubs/documents/foreignPassport.js +17 -2
- package/dist/stubs/documents/foreignPassport.js.map +1 -1
- package/dist/stubs/documents/index.js +2 -2
- package/dist/stubs/documents/index.js.map +1 -1
- package/dist/stubs/documents/internalPassport.js +17 -2
- package/dist/stubs/documents/internalPassport.js.map +1 -1
- package/dist/types/dbUtilsBuilder.d.ts +29 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interfaces/documents/foreignPassport.d.ts +2 -1
- package/dist/types/interfaces/documents/index.d.ts +15 -0
- package/dist/types/interfaces/documents/internalPassport.d.ts +2 -1
- package/dist/types/publicServiceGenerator.d.ts +1 -1
- package/dist/types/sessionGenerator.d.ts +4 -5
- package/package.json +34 -38
- package/vitest/extend-expect.ts +25 -0
- package/vitest/interfaces/index.ts +8 -0
- package/vitest/matchers/designSystem/atoms/amountAtm.ts +13 -0
- package/vitest/matchers/designSystem/atoms/articlePicAtm.ts +12 -0
- package/vitest/matchers/designSystem/atoms/badgeCounterAtm.ts +11 -0
- package/vitest/matchers/designSystem/atoms/btnLinkAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/btnLoadPlainIconAtm.ts +19 -0
- package/vitest/matchers/designSystem/atoms/btnPlainAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/btnPlainIconAtm.ts +18 -0
- package/vitest/matchers/designSystem/atoms/btnPrimaryAdditionalAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/btnPrimaryDefaultAtm.ts +17 -0
- package/vitest/matchers/designSystem/atoms/btnPrimaryLargeAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/btnPrimaryWideAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/btnSemiLightAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/btnStrokeAdditionalAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/btnStrokeDefaultAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/btnWhiteAdditionalIconAtm.ts +20 -0
- package/vitest/matchers/designSystem/atoms/calendarItemAtm.ts +14 -0
- package/vitest/matchers/designSystem/atoms/chipStatusAtm.ts +14 -0
- package/vitest/matchers/designSystem/atoms/dotNavigationAtm.ts +11 -0
- package/vitest/matchers/designSystem/atoms/doubleIconAtm.ts +15 -0
- package/vitest/matchers/designSystem/atoms/greyTitleAtm.ts +12 -0
- package/vitest/matchers/designSystem/atoms/iconAtm.ts +12 -0
- package/vitest/matchers/designSystem/atoms/index.ts +65 -0
- package/vitest/matchers/designSystem/atoms/inputNumberLargeAtm.ts +15 -0
- package/vitest/matchers/designSystem/atoms/largeIconAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/playerBtnAtm.ts +12 -0
- package/vitest/matchers/designSystem/atoms/sectionTitleAtm.ts +11 -0
- package/vitest/matchers/designSystem/atoms/shared/buttonAction.ts +15 -0
- package/vitest/matchers/designSystem/atoms/shared/iconAction.ts +13 -0
- package/vitest/matchers/designSystem/atoms/simpleIconAtm.ts +12 -0
- package/vitest/matchers/designSystem/atoms/smallIconAtm.ts +16 -0
- package/vitest/matchers/designSystem/atoms/textParameterAtm.ts +19 -0
- package/vitest/matchers/designSystem/atoms/tickerAtm.ts +20 -0
- package/vitest/matchers/designSystem/atoms/userPictureAtm.ts +14 -0
- package/vitest/matchers/designSystem/atoms/validationAtm.ts +13 -0
- package/vitest/matchers/designSystem/enums/button.ts +5 -0
- package/vitest/matchers/designSystem/enums/icon.ts +5 -0
- package/vitest/matchers/designSystem/index.ts +7 -0
- package/vitest/matchers/designSystem/molecules/articleVideoMlc.ts +13 -0
- package/vitest/matchers/designSystem/molecules/attentionIconMessageMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/attentionMessageMlc.ts +18 -0
- package/vitest/matchers/designSystem/molecules/barCodeMlc.ts +12 -0
- package/vitest/matchers/designSystem/molecules/blackCardMlc.ts +20 -0
- package/vitest/matchers/designSystem/molecules/btnIconPlainGroupMlc.ts +17 -0
- package/vitest/matchers/designSystem/molecules/btnIconRoundedMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/btnLoadIconPlainGroupMlc.ts +17 -0
- package/vitest/matchers/designSystem/molecules/btnToggleMlc.ts +26 -0
- package/vitest/matchers/designSystem/molecules/cardMlc.ts +33 -0
- package/vitest/matchers/designSystem/molecules/cardMlcTicker.ts +12 -0
- package/vitest/matchers/designSystem/molecules/checkIconMlc.ts +13 -0
- package/vitest/matchers/designSystem/molecules/checkboxRoundMlc.ts +11 -0
- package/vitest/matchers/designSystem/molecules/checkboxSquareMlc.ts +22 -0
- package/vitest/matchers/designSystem/molecules/chipMlc.ts +22 -0
- package/vitest/matchers/designSystem/molecules/chipTimeMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/currentTimeMlc.ts +20 -0
- package/vitest/matchers/designSystem/molecules/dashboardCardMlc.ts +23 -0
- package/vitest/matchers/designSystem/molecules/docNumberCopyMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/docNumberCopyWhiteMlc.ts +14 -0
- package/vitest/matchers/designSystem/molecules/docTableItemHorizontalLongerMlc.ts +18 -0
- package/vitest/matchers/designSystem/molecules/docTableItemHorizontalMlc.ts +19 -0
- package/vitest/matchers/designSystem/molecules/halvedCardMlc.ts +21 -0
- package/vitest/matchers/designSystem/molecules/headingWithSubtitleWhiteMlc.ts +12 -0
- package/vitest/matchers/designSystem/molecules/headingWithSubtitlesMlc.ts +13 -0
- package/vitest/matchers/designSystem/molecules/iconCardMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/imageCardMlc.ts +21 -0
- package/vitest/matchers/designSystem/molecules/index.ts +121 -0
- package/vitest/matchers/designSystem/molecules/inputDateMlc.ts +19 -0
- package/vitest/matchers/designSystem/molecules/inputNumberFractionalMlc.ts +21 -0
- package/vitest/matchers/designSystem/molecules/inputNumberLargeMlc.ts +17 -0
- package/vitest/matchers/designSystem/molecules/inputNumberMlc.ts +20 -0
- package/vitest/matchers/designSystem/molecules/inputTextMlc.ts +21 -0
- package/vitest/matchers/designSystem/molecules/inputTextMultilineMlc.ts +21 -0
- package/vitest/matchers/designSystem/molecules/listItemMlc.ts +32 -0
- package/vitest/matchers/designSystem/molecules/listWidgetItemMlc.ts +24 -0
- package/vitest/matchers/designSystem/molecules/navigationPanelMlc.ts +49 -0
- package/vitest/matchers/designSystem/molecules/qrCodeMlc.ts +12 -0
- package/vitest/matchers/designSystem/molecules/radioBtnMlc.ts +28 -0
- package/vitest/matchers/designSystem/molecules/searchInputMlc.ts +19 -0
- package/vitest/matchers/designSystem/molecules/smallEmojiPanelMlc.ts +13 -0
- package/vitest/matchers/designSystem/molecules/smallEmojiPanelPlaneMlc.ts +13 -0
- package/vitest/matchers/designSystem/molecules/smallNotificationMlc.ts +20 -0
- package/vitest/matchers/designSystem/molecules/stackMlc.ts +13 -0
- package/vitest/matchers/designSystem/molecules/statusMessageMlc.ts +16 -0
- package/vitest/matchers/designSystem/molecules/stubMessageMlc.ts +18 -0
- package/vitest/matchers/designSystem/molecules/subtitleLabelMlc.ts +14 -0
- package/vitest/matchers/designSystem/molecules/tableItemHorizontalLargeMlc.ts +22 -0
- package/vitest/matchers/designSystem/molecules/tableItemHorizontalMlc.ts +19 -0
- package/vitest/matchers/designSystem/molecules/tableItemMlc.ts +23 -0
- package/vitest/matchers/designSystem/molecules/tableItemPrimaryMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/tableItemVerticalMlc.ts +22 -0
- package/vitest/matchers/designSystem/molecules/tableMainHeadingMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/tableSecondaryHeadingMlc.ts +14 -0
- package/vitest/matchers/designSystem/molecules/textLabelContainerMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/textLabelMlc.ts +23 -0
- package/vitest/matchers/designSystem/molecules/timerMlc.ts +36 -0
- package/vitest/matchers/designSystem/molecules/titleGroupMlc.ts +27 -0
- package/vitest/matchers/designSystem/molecules/titleLabelMlc.ts +12 -0
- package/vitest/matchers/designSystem/molecules/userCardMlc.ts +15 -0
- package/vitest/matchers/designSystem/molecules/verticalCardMlc.ts +22 -0
- package/vitest/matchers/designSystem/molecules/whiteCardMlc.ts +19 -0
- package/vitest/matchers/designSystem/organisms/articlePicCarouselOrg.ts +20 -0
- package/vitest/matchers/designSystem/organisms/bottomGroupOrg.ts +25 -0
- package/vitest/matchers/designSystem/organisms/btnIconRoundedGroupOrg.ts +16 -0
- package/vitest/matchers/designSystem/organisms/calendarItemOrg.ts +16 -0
- package/vitest/matchers/designSystem/organisms/checkboxBtnOrg.ts +21 -0
- package/vitest/matchers/designSystem/organisms/checkboxRoundGroupOrg.ts +22 -0
- package/vitest/matchers/designSystem/organisms/chipGroupOrg.ts +21 -0
- package/vitest/matchers/designSystem/organisms/chipTabsOrg.ts +22 -0
- package/vitest/matchers/designSystem/organisms/dashboardCardTileOrg.ts +17 -0
- package/vitest/matchers/designSystem/organisms/docButtonHeadingOrg.ts +20 -0
- package/vitest/matchers/designSystem/organisms/docHeadingOrg.ts +19 -0
- package/vitest/matchers/designSystem/organisms/editAutomaticallyDeterminedValueOrg.ts +18 -0
- package/vitest/matchers/designSystem/organisms/fileUploadGroupOrg.ts +17 -0
- package/vitest/matchers/designSystem/organisms/fullScreenVideoOrg.ts +17 -0
- package/vitest/matchers/designSystem/organisms/groupFilesAddOrg.ts +19 -0
- package/vitest/matchers/designSystem/organisms/halvedCardCarouselOrg.ts +20 -0
- package/vitest/matchers/designSystem/organisms/index.ts +83 -0
- package/vitest/matchers/designSystem/organisms/inputDateTimeOrg.ts +16 -0
- package/vitest/matchers/designSystem/organisms/inputNumLargeTimeOrg.ts +19 -0
- package/vitest/matchers/designSystem/organisms/listItemGroupOrg.ts +11 -0
- package/vitest/matchers/designSystem/organisms/mediaTitleOrg.ts +14 -0
- package/vitest/matchers/designSystem/organisms/mediaUploadGroupOrg.ts +16 -0
- package/vitest/matchers/designSystem/organisms/paginationListOrg.ts +19 -0
- package/vitest/matchers/designSystem/organisms/paginationListWhiteOrg.ts +20 -0
- package/vitest/matchers/designSystem/organisms/paymentInfoOrg.ts +23 -0
- package/vitest/matchers/designSystem/organisms/questionFormsOrg.ts +28 -0
- package/vitest/matchers/designSystem/organisms/radioBtnAdditionalInputOrg.ts +14 -0
- package/vitest/matchers/designSystem/organisms/radioBtnGroupOrg.ts +28 -0
- package/vitest/matchers/designSystem/organisms/radioBtnWithAltOrg.ts +17 -0
- package/vitest/matchers/designSystem/organisms/searchBarOrg.ts +15 -0
- package/vitest/matchers/designSystem/organisms/selectorListWidgetOrg.ts +16 -0
- package/vitest/matchers/designSystem/organisms/selectorOrg.ts +24 -0
- package/vitest/matchers/designSystem/organisms/sharingCodesOrg.ts +24 -0
- package/vitest/matchers/designSystem/organisms/smallNotificationCarouselOrg.ts +20 -0
- package/vitest/matchers/designSystem/organisms/tableBlockAccordionOrg.ts +15 -0
- package/vitest/matchers/designSystem/organisms/tableBlockOrg.ts +17 -0
- package/vitest/matchers/designSystem/organisms/tableBlockPlaneOrg.ts +17 -0
- package/vitest/matchers/designSystem/organisms/tableBlockTwoColumnsOrg.ts +15 -0
- package/vitest/matchers/designSystem/organisms/tableBlockTwoColumnsPlaneOrg.ts +16 -0
- package/vitest/matchers/designSystem/organisms/toggleButtonGroupOrg.ts +18 -0
- package/vitest/matchers/designSystem/organisms/topGroupOrg.ts +17 -0
- package/vitest/matchers/designSystem/organisms/verificationCodesOrg.ts +31 -0
- package/vitest/matchers/designSystem/organisms/verticalCardCarouselOrg.ts +16 -0
- package/vitest/matchers/designSystem/utils.ts +14 -0
- package/vitest/matchers/index.ts +21 -0
- package/vitest/matchers/toBe.ts +38 -0
- package/vitest/matchers/toBeAttentionMessage/index.ts +19 -0
- package/vitest/matchers/toBeAttentionMessage/interfaces.ts +8 -0
- package/vitest/matchers/toBeAttentionMessageParameter.ts +20 -0
- package/vitest/matchers/toBeContextMenu/index.ts +25 -0
- package/vitest/matchers/toBeContextMenu/interfaces.ts +9 -0
- package/vitest/matchers/toBeDesignSystemElement/index.ts +8 -0
- package/vitest/matchers/toBeMainButton/index.ts +19 -0
- package/vitest/matchers/toBeMainButton/interfaces.ts +5 -0
- package/vitest/matchers/toBeNavigationPanel/index.ts +17 -0
- package/vitest/matchers/toBeNavigationPanel/interfaces.ts +6 -0
- package/vitest/matchers/toBeTextWithParameters/index.ts +17 -0
- package/vitest/matchers/toBeTextWithParameters/interfaces.ts +6 -0
- package/vitest/matchers/toBeValueWithLabel/index.ts +18 -0
- package/vitest/matchers/toBeValueWithLabel/interfaces.ts +4 -0
- package/vitest/matchers/toContainObjects.ts +17 -0
- package/vitest/matchers/toEqual.ts +26 -0
- package/vitest/matchers/toInterceptorsBeDone.ts +18 -0
- package/vitest/tsconfig.json +9 -0
- package/vitest/utils.ts +144 -0
- package/dist/mock.js +0 -44
- package/dist/mock.js.map +0 -1
- package/dist/mongooseMock.js +0 -43
- package/dist/mongooseMock.js.map +0 -1
- package/dist/types/mock.d.ts +0 -20
- package/dist/types/mongooseMock.d.ts +0 -33
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { SubtitleLabelMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const schema: Describe<SubtitleLabelMlc> = object({
|
|
9
|
+
label: string(),
|
|
10
|
+
icon: optional(iconAtmSchema),
|
|
11
|
+
componentId: optional(string()),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export const subtitleLabelMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Describe, array, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TableItemHorizontalLargeMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
6
|
+
import { simpleIconAtmSchema } from '../atoms/simpleIconAtm'
|
|
7
|
+
import { schemaBuilder } from '../utils'
|
|
8
|
+
|
|
9
|
+
const schema: Describe<TableItemHorizontalLargeMlc> = object({
|
|
10
|
+
label: string(),
|
|
11
|
+
supportingValue: optional(string()),
|
|
12
|
+
secondaryLabel: optional(string()),
|
|
13
|
+
value: optional(string()),
|
|
14
|
+
secondaryValue: optional(string()),
|
|
15
|
+
valueImage: optional(string()),
|
|
16
|
+
icon: optional(iconAtmSchema),
|
|
17
|
+
componentId: optional(string()),
|
|
18
|
+
valueIcons: array(simpleIconAtmSchema()),
|
|
19
|
+
valueImages: array(string()),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export const tableItemHorizontalLargeMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TableItemHorizontalMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const schema: Describe<TableItemHorizontalMlc> = object({
|
|
9
|
+
label: string(),
|
|
10
|
+
supportingValue: optional(string()),
|
|
11
|
+
secondaryLabel: optional(string()),
|
|
12
|
+
value: optional(string()),
|
|
13
|
+
secondaryValue: optional(string()),
|
|
14
|
+
valueImage: optional(string()),
|
|
15
|
+
icon: optional(iconAtmSchema),
|
|
16
|
+
componentId: optional(string()),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export const tableItemHorizontalMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Describe, object, optional } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TableItemMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { schemaBuilder } from '../utils'
|
|
6
|
+
import { docTableItemHorizontalMlcSchema } from './docTableItemHorizontalMlc'
|
|
7
|
+
import { smallEmojiPanelMlcSchema } from './smallEmojiPanelMlc'
|
|
8
|
+
import { smallEmojiPanelPlaneMlcSchema } from './smallEmojiPanelPlaneMlc'
|
|
9
|
+
import { tableItemHorizontalMlcSchema } from './tableItemHorizontalMlc'
|
|
10
|
+
import { tableItemPrimaryMlcSchema } from './tableItemPrimaryMlc'
|
|
11
|
+
import { tableItemVerticalMlcSchema } from './tableItemVerticalMlc'
|
|
12
|
+
|
|
13
|
+
const schema: Describe<TableItemMlc> = object({
|
|
14
|
+
smallEmojiPanelMlc: optional(smallEmojiPanelMlcSchema()),
|
|
15
|
+
tableItemPrimaryMlc: optional(tableItemPrimaryMlcSchema()),
|
|
16
|
+
tableItemHorizontalMlc: optional(tableItemHorizontalMlcSchema()),
|
|
17
|
+
tableItemVerticalMlc: optional(tableItemVerticalMlcSchema()),
|
|
18
|
+
smallEmojiPanelPlaneMlc: optional(smallEmojiPanelPlaneMlcSchema()),
|
|
19
|
+
docTableItemHorizontalMlc: optional(docTableItemHorizontalMlcSchema()),
|
|
20
|
+
docTableItemHorizontalLongerMlc: optional(docTableItemHorizontalMlcSchema()),
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
export const tableItemMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TableItemPrimaryMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const schema: Describe<TableItemPrimaryMlc> = object({
|
|
9
|
+
componentId: optional(string()),
|
|
10
|
+
icon: optional(iconAtmSchema),
|
|
11
|
+
label: optional(string()),
|
|
12
|
+
value: string(),
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export const tableItemPrimaryMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Describe, array, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TableItemVerticalMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
6
|
+
import { simpleIconAtmSchema } from '../atoms/simpleIconAtm'
|
|
7
|
+
import { schemaBuilder } from '../utils'
|
|
8
|
+
|
|
9
|
+
const schema: Describe<TableItemVerticalMlc> = object({
|
|
10
|
+
label: string(),
|
|
11
|
+
supportingValue: optional(string()),
|
|
12
|
+
secondaryLabel: optional(string()),
|
|
13
|
+
value: optional(string()),
|
|
14
|
+
secondaryValue: optional(string()),
|
|
15
|
+
valueImage: optional(string()),
|
|
16
|
+
icon: optional(iconAtmSchema),
|
|
17
|
+
componentId: optional(string()),
|
|
18
|
+
valueIcons: array(simpleIconAtmSchema()),
|
|
19
|
+
valueImages: array(string()),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export const tableItemVerticalMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TableMainHeadingMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const schema: Describe<TableMainHeadingMlc> = object({
|
|
9
|
+
label: string(),
|
|
10
|
+
icon: optional(iconAtmSchema),
|
|
11
|
+
description: optional(string()),
|
|
12
|
+
componentId: optional(string()),
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export const tableMainHeadingMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TableSecondaryHeadingMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const schema: Describe<TableSecondaryHeadingMlc> = object({
|
|
9
|
+
label: string(),
|
|
10
|
+
icon: optional(iconAtmSchema),
|
|
11
|
+
description: optional(string()),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export const tableSecondaryHeadingMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Describe, array, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TextLabelContainerMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { textParameterAtmSchema } from '../atoms/textParameterAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const schema: Describe<TextLabelContainerMlc> = object({
|
|
9
|
+
label: optional(string()),
|
|
10
|
+
text: optional(string()),
|
|
11
|
+
parameters: array(textParameterAtmSchema()),
|
|
12
|
+
componentId: optional(string()),
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export const textLabelContainerMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Describe, array, number, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TextLabelMlc, TextLabelMlcExpireLabel } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { textParameterAtmSchema } from '../atoms/textParameterAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const textLabelMlcExpireLabelSchema: Describe<TextLabelMlcExpireLabel> = object({
|
|
9
|
+
expireLabelFirst: string(),
|
|
10
|
+
expireLabelLast: optional(string()),
|
|
11
|
+
timer: number(),
|
|
12
|
+
textAfterExpiration: string(),
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const schema: Describe<TextLabelMlc> = object({
|
|
16
|
+
label: optional(string()),
|
|
17
|
+
text: optional(string()),
|
|
18
|
+
parameters: array(textParameterAtmSchema()),
|
|
19
|
+
componentId: optional(string()),
|
|
20
|
+
expireLabel: optional(textLabelMlcExpireLabelSchema),
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
export const textLabelMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Describe, array, number, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TimerMlc, TimerMlcData, TimerMlcExpireLabel, TimerMlcParameter, TimerMlcStateAfterExpiration } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { btnLinkAtmSchema } from '../atoms/btnLinkAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const timerMlcStateAfterExpiration: Describe<TimerMlcStateAfterExpiration> = object({
|
|
9
|
+
btnLinkAtm: optional(btnLinkAtmSchema()),
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const timerMlcDataSchema: Describe<TimerMlcData> = object({
|
|
13
|
+
name: string(),
|
|
14
|
+
alt: string(),
|
|
15
|
+
resource: string(),
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
const timerMlcParameterSchema: Describe<TimerMlcParameter> = object({
|
|
19
|
+
type: string(),
|
|
20
|
+
data: optional(timerMlcDataSchema),
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const timerMlcExpireLabelSchema: Describe<TimerMlcExpireLabel> = object({
|
|
24
|
+
expireLabelFirst: string(),
|
|
25
|
+
expireLabelLast: optional(string()),
|
|
26
|
+
timer: number(),
|
|
27
|
+
parameters: array(timerMlcParameterSchema),
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
const schema: Describe<TimerMlc> = object({
|
|
31
|
+
componentId: optional(string()),
|
|
32
|
+
expireLabel: optional(timerMlcExpireLabelSchema),
|
|
33
|
+
stateAfterExpiration: optional(timerMlcStateAfterExpiration),
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
export const timerMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { LeftNavIcon, TitleGroupMediumIconRight, TitleGroupMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconActionSchema } from '../atoms/shared/iconAction'
|
|
6
|
+
import { iconSchema } from '../enums/icon'
|
|
7
|
+
import { schemaBuilder } from '../utils'
|
|
8
|
+
|
|
9
|
+
const titleGroupMediumIconRightSchema: Describe<TitleGroupMediumIconRight> = object({
|
|
10
|
+
code: iconSchema,
|
|
11
|
+
action: optional(iconActionSchema()),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const leftNavIconSchema: Describe<LeftNavIcon> = object({
|
|
15
|
+
code: iconSchema,
|
|
16
|
+
accessibilityDescription: optional(string()),
|
|
17
|
+
action: optional(iconActionSchema()),
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
const schema: Describe<TitleGroupMlc> = object({
|
|
21
|
+
heroText: string(),
|
|
22
|
+
label: optional(string()),
|
|
23
|
+
mediumIconRight: optional(titleGroupMediumIconRightSchema),
|
|
24
|
+
leftNavIcon: optional(leftNavIconSchema),
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
export const titleGroupMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { TitleLabelMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { schemaBuilder } from '../utils'
|
|
6
|
+
|
|
7
|
+
const schema: Describe<TitleLabelMlc> = object({
|
|
8
|
+
label: string(),
|
|
9
|
+
componentId: optional(string()),
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
export const titleLabelMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { UserCardMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { userPictureAtmSchema } from '../atoms/userPictureAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const schema: Describe<UserCardMlc> = object({
|
|
9
|
+
componentId: optional(string()),
|
|
10
|
+
userPictureAtm: optional(userPictureAtmSchema()),
|
|
11
|
+
label: string(),
|
|
12
|
+
description: optional(string()),
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export const userCardMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { VerticalCardAction, VerticalCardMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { badgeCounterAtmSchema } from '../atoms/badgeCounterAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
export const verticalCardActionSchema: Describe<VerticalCardAction> = object({
|
|
9
|
+
type: string(),
|
|
10
|
+
subtype: optional(string()),
|
|
11
|
+
resource: optional(string()),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const schema: Describe<VerticalCardMlc> = object({
|
|
15
|
+
image: string(),
|
|
16
|
+
badgeCounterAtm: optional(badgeCounterAtmSchema()),
|
|
17
|
+
title: string(),
|
|
18
|
+
id: optional(string()),
|
|
19
|
+
action: optional(verticalCardActionSchema),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export const verticalCardMlcSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { WhiteCardMlc } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { doubleIconAtmSchema } from '../atoms/doubleIconAtm'
|
|
6
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
7
|
+
import { largeIconAtmSchema } from '../atoms/largeIconAtm'
|
|
8
|
+
import { buttonActionSchema } from '../atoms/shared/buttonAction'
|
|
9
|
+
import { smallIconAtmSchema } from '../atoms/smallIconAtm'
|
|
10
|
+
|
|
11
|
+
export const whiteCardMlcSchema: Describe<WhiteCardMlc> = object({
|
|
12
|
+
smallIconAtm: optional(smallIconAtmSchema()),
|
|
13
|
+
iconAtm: optional(iconAtmSchema),
|
|
14
|
+
doubleIconAtm: optional(doubleIconAtmSchema()),
|
|
15
|
+
largeIconAtm: optional(largeIconAtmSchema()),
|
|
16
|
+
title: optional(string()),
|
|
17
|
+
label: string(),
|
|
18
|
+
action: optional(buttonActionSchema()),
|
|
19
|
+
})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Describe, array, object, optional } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { ArticlePicCarouselItems, ArticlePicCarouselOrg } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { articlePicAtmSchema } from '../atoms/articlePicAtm'
|
|
6
|
+
import { dotNavigationAtmSchema } from '../atoms/dotNavigationAtm'
|
|
7
|
+
import { articleVideoMlcSchema } from '../molecules/articleVideoMlc'
|
|
8
|
+
import { schemaBuilder } from '../utils'
|
|
9
|
+
|
|
10
|
+
export const articlePicCarouselItemsSchema: Describe<ArticlePicCarouselItems> = object({
|
|
11
|
+
articlePicAtm: optional(articlePicAtmSchema()),
|
|
12
|
+
articleVideoMlc: optional(articleVideoMlcSchema()),
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const schema: Describe<ArticlePicCarouselOrg> = object({
|
|
16
|
+
dotNavigationAtm: optional(dotNavigationAtmSchema()),
|
|
17
|
+
items: array(articlePicCarouselItemsSchema),
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
export const articlePicCarouselOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { BottomGroupOrg } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { btnPlainAtmSchema } from '../atoms/btnPlainAtm'
|
|
6
|
+
import { btnPrimaryDefaultAtmSchema } from '../atoms/btnPrimaryDefaultAtm'
|
|
7
|
+
import { btnPrimaryLargeAtmSchema } from '../atoms/btnPrimaryLargeAtm'
|
|
8
|
+
import { btnStrokeDefaultAtmSchema } from '../atoms/btnStrokeDefaultAtm'
|
|
9
|
+
import { btnIconPlainGroupMlcSchema } from '../molecules/btnIconPlainGroupMlc'
|
|
10
|
+
import { btnLoadIconPlainGroupMlcSchema } from '../molecules/btnLoadIconPlainGroupMlc'
|
|
11
|
+
import { schemaBuilder } from '../utils'
|
|
12
|
+
import { checkboxBtnOrgSchema } from './checkboxBtnOrg'
|
|
13
|
+
|
|
14
|
+
const schema: Describe<BottomGroupOrg> = object({
|
|
15
|
+
btnPrimaryDefaultAtm: optional(btnPrimaryDefaultAtmSchema()),
|
|
16
|
+
btnPlainAtm: optional(btnPlainAtmSchema()),
|
|
17
|
+
checkboxBtnOrg: optional(checkboxBtnOrgSchema()),
|
|
18
|
+
componentId: optional(string()),
|
|
19
|
+
btnIconPlainGroupMlc: optional(btnIconPlainGroupMlcSchema()),
|
|
20
|
+
btnPrimaryLargeAtm: optional(btnPrimaryLargeAtmSchema()),
|
|
21
|
+
btnStrokeDefaultAtm: optional(btnStrokeDefaultAtmSchema()),
|
|
22
|
+
btnLoadIconPlainGroupMlc: optional(btnLoadIconPlainGroupMlcSchema()),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
export const bottomGroupOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Describe, array, object, optional } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { BtnIconRoundedGroupOrg, BtnIconRoundedGroupOrgItem } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { btnIconRoundedMlcSchema } from '../molecules/btnIconRoundedMlc'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const btnIconRoundedGroupOrgItemSchema: Describe<BtnIconRoundedGroupOrgItem> = object({
|
|
9
|
+
btnIconRoundedMlc: optional(btnIconRoundedMlcSchema()),
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const schema: Describe<BtnIconRoundedGroupOrg> = object({
|
|
13
|
+
items: array(btnIconRoundedGroupOrgItemSchema),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export const btnIconRoundedGroupOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { CalendarItemOrg } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { calendarItemAtmSchema } from '../atoms/calendarItemAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
import { chipGroupOrgSchema } from './chipGroupOrg'
|
|
8
|
+
|
|
9
|
+
const schema: Describe<CalendarItemOrg> = object({
|
|
10
|
+
componentId: string(),
|
|
11
|
+
date: string(),
|
|
12
|
+
calendarItemAtm: optional(calendarItemAtmSchema()),
|
|
13
|
+
chipGroupOrg: optional(chipGroupOrgSchema()),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export const calendarItemOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Describe, array, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { CheckboxBtnOrg, CheckboxBtnOrgItem } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { btnPrimaryDefaultAtmSchema } from '../atoms/btnPrimaryDefaultAtm'
|
|
6
|
+
import { btnPrimaryWideAtmSchema } from '../atoms/btnPrimaryWideAtm'
|
|
7
|
+
import { checkboxSquareMlcSchema } from '../molecules/checkboxSquareMlc'
|
|
8
|
+
import { schemaBuilder } from '../utils'
|
|
9
|
+
|
|
10
|
+
const checkboxBtnOrgItemSchema: Describe<CheckboxBtnOrgItem> = object({
|
|
11
|
+
checkboxSquareMlc: optional(checkboxSquareMlcSchema()),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const schema: Describe<CheckboxBtnOrg> = object({
|
|
15
|
+
items: array(checkboxBtnOrgItemSchema),
|
|
16
|
+
componentId: optional(string()),
|
|
17
|
+
btnPrimaryDefaultAtm: optional(btnPrimaryDefaultAtmSchema()),
|
|
18
|
+
btnPrimaryWideAtm: optional(btnPrimaryWideAtmSchema()),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
export const checkboxBtnOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Describe, array, boolean, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { CheckboxRoundGroupOrg, CheckboxRoundGroupOrgItem } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { checkIconMlcSchema } from '../molecules/checkIconMlc'
|
|
6
|
+
import { checkboxRoundMlcSchema } from '../molecules/checkboxRoundMlc'
|
|
7
|
+
import { schemaBuilder } from '../utils'
|
|
8
|
+
|
|
9
|
+
const checkboxRoundGroupOrgItem: Describe<CheckboxRoundGroupOrgItem> = object({
|
|
10
|
+
checkboxRoundMlc: optional(checkboxRoundMlcSchema),
|
|
11
|
+
checkIconMlc: optional(checkIconMlcSchema()),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const schema: Describe<CheckboxRoundGroupOrg> = object({
|
|
15
|
+
id: optional(string()),
|
|
16
|
+
title: optional(string()),
|
|
17
|
+
blocker: optional(boolean()),
|
|
18
|
+
condition: optional(string()),
|
|
19
|
+
items: array(checkboxRoundGroupOrgItem),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export const checkboxRoundGroupOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Describe, array, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { ChipGroupOrg, ChipGroupOrgItem } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { chipMlcSchema } from '../molecules/chipMlc'
|
|
6
|
+
import { chipTimeMlcSchema } from '../molecules/chipTimeMlc'
|
|
7
|
+
import { schemaBuilder } from '../utils'
|
|
8
|
+
|
|
9
|
+
const chipGroupOrgItemSchema: Describe<ChipGroupOrgItem> = object({
|
|
10
|
+
chipMlc: optional(chipMlcSchema()),
|
|
11
|
+
chipTimeMlc: optional(chipTimeMlcSchema()),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const schema: Describe<ChipGroupOrg> = object({
|
|
15
|
+
componentId: optional(string()),
|
|
16
|
+
label: optional(string()),
|
|
17
|
+
items: array(chipGroupOrgItemSchema),
|
|
18
|
+
preselectedCode: optional(string()),
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
export const chipGroupOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Describe, array, number, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { ChipTabsOrg, ChipTabsOrgItem } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { chipMlcSchema } from '../molecules/chipMlc'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const chipTabsOrgItem: Describe<ChipTabsOrgItem> = object({
|
|
9
|
+
chipMlc: optional(chipMlcSchema()),
|
|
10
|
+
code: optional(string()),
|
|
11
|
+
label: optional(string()),
|
|
12
|
+
count: optional(number()),
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const schema: Describe<ChipTabsOrg> = object({
|
|
16
|
+
label: optional(string()),
|
|
17
|
+
preselectedCode: string(),
|
|
18
|
+
componentId: optional(string()),
|
|
19
|
+
items: array(chipTabsOrgItem),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export const chipTabsOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Describe, array, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { DashboardCardTileOrg, DashboardCardTileOrgItem } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { dashboardCardMlcSchema } from '../molecules/dashboardCardMlc'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const dashboardCardTileOrgItemSchema: Describe<DashboardCardTileOrgItem> = object({
|
|
9
|
+
dashboardCardMlc: optional(dashboardCardMlcSchema()),
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const schema: Describe<DashboardCardTileOrg> = object({
|
|
13
|
+
componentId: string(),
|
|
14
|
+
items: array(dashboardCardTileOrgItemSchema),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export const dashboardCardTileOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { DocButtonHeadingOrg } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { iconAtmSchema } from '../atoms/iconAtm'
|
|
6
|
+
import { docNumberCopyMlcSchema } from '../molecules/docNumberCopyMlc'
|
|
7
|
+
import { docNumberCopyWhiteMlcSchema } from '../molecules/docNumberCopyWhiteMlc'
|
|
8
|
+
import { headingWithSubtitleWhiteMlcSchema } from '../molecules/headingWithSubtitleWhiteMlc'
|
|
9
|
+
import { headingWithSubtitlesMlcSchema } from '../molecules/headingWithSubtitlesMlc'
|
|
10
|
+
import { stackMlcSchema } from '../molecules/stackMlc'
|
|
11
|
+
|
|
12
|
+
export const docButtonHeadingOrgSchema: Describe<DocButtonHeadingOrg> = object({
|
|
13
|
+
headingWithSubtitlesMlc: optional(headingWithSubtitlesMlcSchema()),
|
|
14
|
+
docNumberCopyMlc: optional(docNumberCopyMlcSchema()),
|
|
15
|
+
headingWithSubtitleWhiteMlc: optional(headingWithSubtitleWhiteMlcSchema()),
|
|
16
|
+
docNumberCopyWhiteMlc: optional(docNumberCopyWhiteMlcSchema()),
|
|
17
|
+
stackMlc: optional(stackMlcSchema()),
|
|
18
|
+
iconAtm: optional(iconAtmSchema),
|
|
19
|
+
componentId: optional(string()),
|
|
20
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { DocHeadingOrg } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { docNumberCopyMlcSchema } from '../molecules/docNumberCopyMlc'
|
|
6
|
+
import { docNumberCopyWhiteMlcSchema } from '../molecules/docNumberCopyWhiteMlc'
|
|
7
|
+
import { headingWithSubtitleWhiteMlcSchema } from '../molecules/headingWithSubtitleWhiteMlc'
|
|
8
|
+
import { headingWithSubtitlesMlcSchema } from '../molecules/headingWithSubtitlesMlc'
|
|
9
|
+
import { schemaBuilder } from '../utils'
|
|
10
|
+
|
|
11
|
+
const schema: Describe<DocHeadingOrg> = object({
|
|
12
|
+
componentId: optional(string()),
|
|
13
|
+
headingWithSubtitlesMlc: optional(headingWithSubtitlesMlcSchema()),
|
|
14
|
+
headingWithSubtitleWhiteMlc: optional(headingWithSubtitleWhiteMlcSchema()),
|
|
15
|
+
docNumberCopyMlc: optional(docNumberCopyMlcSchema()),
|
|
16
|
+
docNumberCopyWhiteMlc: optional(docNumberCopyWhiteMlcSchema()),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export const docHeadingOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { EditAutomaticallyDeterminedValueOrg } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { inputTextMlcSchema } from '../molecules/inputTextMlc'
|
|
6
|
+
import { inputTextMultilineMlcSchema } from '../molecules/inputTextMultilineMlc'
|
|
7
|
+
import { schemaBuilder } from '../utils'
|
|
8
|
+
|
|
9
|
+
const schema: Describe<EditAutomaticallyDeterminedValueOrg> = object({
|
|
10
|
+
componentId: optional(string()),
|
|
11
|
+
title: optional(string()),
|
|
12
|
+
label: optional(string()),
|
|
13
|
+
value: optional(string()),
|
|
14
|
+
inputTextMlc: optional(inputTextMlcSchema()),
|
|
15
|
+
inputTextMultilineMlc: inputTextMultilineMlcSchema(),
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export const editAutomaticallyDeterminedValueOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Describe, number, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { FileUploadGroupOrg } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { btnPlainIconAtmSchema } from '../atoms/btnPlainIconAtm'
|
|
6
|
+
import { schemaBuilder } from '../utils'
|
|
7
|
+
|
|
8
|
+
const schema: Describe<FileUploadGroupOrg> = object({
|
|
9
|
+
componentId: optional(string()),
|
|
10
|
+
title: optional(string()),
|
|
11
|
+
description: optional(string()),
|
|
12
|
+
maxCount: optional(number()),
|
|
13
|
+
filesType: string(),
|
|
14
|
+
btnPlainIconAtm: optional(btnPlainIconAtmSchema()),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export const fileUploadGroupOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Describe, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { FullScreenVideoOrg } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { btnPlainAtmSchema } from '../atoms/btnPlainAtm'
|
|
6
|
+
import { btnPrimaryDefaultAtmSchema } from '../atoms/btnPrimaryDefaultAtm'
|
|
7
|
+
import { playerBtnAtmSchema } from '../atoms/playerBtnAtm'
|
|
8
|
+
import { schemaBuilder } from '../utils'
|
|
9
|
+
|
|
10
|
+
const schema: Describe<FullScreenVideoOrg> = object({
|
|
11
|
+
source: string(),
|
|
12
|
+
btnPlainAtm: optional(btnPlainAtmSchema()),
|
|
13
|
+
btnPrimaryDefaultAtm: optional(btnPrimaryDefaultAtmSchema()),
|
|
14
|
+
playerBtnAtm: optional(playerBtnAtmSchema()),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export const fullScreenVideoOrgSchema = schemaBuilder(schema)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Describe, array, object, optional, string } from 'superstruct'
|
|
2
|
+
|
|
3
|
+
import { GroupFilesAddOrg, GroupFilesAddOrgItem } from '@diia-inhouse/types'
|
|
4
|
+
|
|
5
|
+
import { btnPlainIconAtmSchema } from '../atoms/btnPlainIconAtm'
|
|
6
|
+
import { listItemMlcSchema } from '../molecules/listItemMlc'
|
|
7
|
+
import { schemaBuilder } from '../utils'
|
|
8
|
+
|
|
9
|
+
const groupFilesAddOrgItemSchema: Describe<GroupFilesAddOrgItem> = object({
|
|
10
|
+
listItemMlc: optional(listItemMlcSchema()),
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const schema: Describe<GroupFilesAddOrg> = object({
|
|
14
|
+
componentId: optional(string()),
|
|
15
|
+
btnPlainIconAtm: optional(btnPlainIconAtmSchema()),
|
|
16
|
+
items: array(groupFilesAddOrgItemSchema),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export const groupFilesAddOrgSchema = schemaBuilder(schema)
|