octopian-configuration-apis 1.0.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.
Files changed (49) hide show
  1. package/README.md +104 -0
  2. package/package.json +18 -0
  3. package/src/CoreServices/configurationServices.js +1501 -0
  4. package/src/CoreServices/darAlBerServices.js +239 -0
  5. package/src/config.js +22 -0
  6. package/src/index.d.ts +908 -0
  7. package/src/index.js +101 -0
  8. package/src/modals/input-modals/CreateNewCorrespondenceInput.ts +7 -0
  9. package/src/modals/input-modals/GetAssetBlazorViewInput.ts +4 -0
  10. package/src/modals/input-modals/GetAssetListInput.ts +8 -0
  11. package/src/modals/input-modals/GetAttributeTypesInput.ts +6 -0
  12. package/src/modals/input-modals/GetDABAssetsInput.ts +4 -0
  13. package/src/modals/input-modals/GetDocumentTypesInput.ts +6 -0
  14. package/src/modals/input-modals/GetInteractorListInput.ts +5 -0
  15. package/src/modals/input-modals/GetItemListInput.ts +8 -0
  16. package/src/modals/input-modals/GetPositionsInput.ts +6 -0
  17. package/src/modals/input-modals/GetRoleListByPermissionInput.ts +13 -0
  18. package/src/modals/input-modals/GetServiceAttributeListInput.ts +8 -0
  19. package/src/modals/input-modals/GetServiceCategoryInput.ts +6 -0
  20. package/src/modals/input-modals/GetServiceListInput.ts +10 -0
  21. package/src/modals/input-modals/GetServiceStepListInput.ts +8 -0
  22. package/src/modals/input-modals/GetServiceSubCategoryInput.ts +7 -0
  23. package/src/modals/input-modals/GetStepTypesInput.ts +7 -0
  24. package/src/modals/input-modals/LoginUserInput.ts +8 -0
  25. package/src/modals/input-modals/MaintainAttributeListInput.ts +6 -0
  26. package/src/modals/input-modals/MaintainAttributeTypeInput.ts +142 -0
  27. package/src/modals/input-modals/MaintainSubCategoryInput.ts +6 -0
  28. package/src/modals/output-modals/BaseResponse.ts +13 -0
  29. package/src/modals/output-modals/GetAssetBlazorViewOutput.ts +11 -0
  30. package/src/modals/output-modals/GetAssetListOutput.ts +92 -0
  31. package/src/modals/output-modals/GetAttributeTypesOutput.ts +37 -0
  32. package/src/modals/output-modals/GetDefaultConfigurationOutput.ts +273 -0
  33. package/src/modals/output-modals/GetDocumentTypesOutput.ts +23 -0
  34. package/src/modals/output-modals/GetInteractorListOutput.ts +81 -0
  35. package/src/modals/output-modals/GetInteractorTypeListOutput.ts +59 -0
  36. package/src/modals/output-modals/GetItemListOutput.ts +92 -0
  37. package/src/modals/output-modals/GetPositionsOutput.ts +10 -0
  38. package/src/modals/output-modals/GetRoleListByPermissionOutput.ts +18 -0
  39. package/src/modals/output-modals/GetServiceAttributeListOutput.ts +95 -0
  40. package/src/modals/output-modals/GetServiceCategoryOutput.ts +62 -0
  41. package/src/modals/output-modals/GetServiceListOutput.ts +183 -0
  42. package/src/modals/output-modals/GetServiceStepListOutput.ts +163 -0
  43. package/src/modals/output-modals/GetServiceSubCategoryOuput.ts +71 -0
  44. package/src/modals/output-modals/GetStepTypesOutput.ts +7 -0
  45. package/src/modals/output-modals/GetUnitListOutput.ts +27 -0
  46. package/src/modals/output-modals/LoginUserOutput.ts +8 -0
  47. package/src/sdkUtilities.js +22 -0
  48. package/src/web-services/apiConstants.js +99 -0
  49. package/src/web-services/apiHandler.js +154 -0
@@ -0,0 +1,273 @@
1
+ export interface GetDefaultConfigurationOutput {
2
+ GetCurrentUserPermissionOutputDto: GetCurrentUserPermissionOutputDto
3
+ StakeholderDtos: StakeholderDto[]
4
+ AttributeTypeDtos: AttributeTypeDto[]
5
+ PositionTypeDtos: PositionTypeDto[]
6
+ StepTypeDtos: StepTypeDto[]
7
+ AttributeSetDtos: AttributeSetDto[]
8
+ FormatTypeDtos: FormatTypeDto[]
9
+ RoleTypeDtos: RoleTypeDto[]
10
+ CompanyLanguageDtos: CompanyLanguageDto[]
11
+ IntegrationConnectionDtos: IntegrationConnectionDto[]
12
+ AttributeTypeValueTypeDtos: AttributeTypeValueTypeDto[]
13
+ CompanyEncryptionCertificateDtos: CompanyEncryptionCertificateDto[]
14
+ QuestionnaireTemplateDtos: QuestionnaireTemplateDto[]
15
+ GroupDtos: GroupDto[]
16
+ CloudPrinterDtos: CloudPrinterDto[]
17
+ AccountingBookTypeDtos: AccountingBookTypeDto[]
18
+ RequestStatusDtos: RequestStatusDto[]
19
+ CountryDtos: CountryDto[]
20
+ DefaultBlobs: any
21
+ DocumentCategoryDtos: any
22
+ RoleDtos: RoleDto[]
23
+ PriceBookTypeDtos: PriceBookTypeDto[]
24
+ UnitOfMeasureTypeDtos: UnitOfMeasureTypeDto[]
25
+ NotificationMessageDtos: NotificationMessageDto[]
26
+ }
27
+
28
+ export interface GetCurrentUserPermissionOutputDto {
29
+ AllowAccessToOldPortal: boolean
30
+ IsReadOnlyPermision: boolean
31
+ RestrucitAccessToCustomPortal: boolean
32
+ }
33
+
34
+ export interface StakeholderDto {
35
+ StakeholderId: number
36
+ Name: string
37
+ IsSystemGenerated: boolean
38
+ Translations?: string
39
+ Weight?: string
40
+ Alias: string
41
+ CompanyContextId?: number
42
+ CopyFromDefault: boolean
43
+ CopyAllDetails: boolean
44
+ IsDefaultContext: boolean
45
+ DtoState: number
46
+ }
47
+
48
+ export interface AttributeTypeDto {
49
+ AttributeTypeId: number
50
+ FormatTypeId: number
51
+ AttributeTypeValueTypeId: number
52
+ IsIntegration: boolean
53
+ ReturnType: number
54
+ HideValue: boolean
55
+ HideLabel: boolean
56
+ HideImage: boolean
57
+ IsPicker: boolean
58
+ IsMultipleChoice: boolean
59
+ ShowInQuestionnaire: boolean
60
+ CustomRegex?: string
61
+ CustomHint?: string
62
+ CounterMinValue?: string
63
+ CounterMaxValue?: string
64
+ CounterStepValue?: string
65
+ OfflineSupport: boolean
66
+ OfflineFilePath?: string
67
+ IsPasswordMask: boolean
68
+ IsEncryptionEnabled: boolean
69
+ CompanyEncryptionCertificateId: any
70
+ AllowOthers: boolean
71
+ UseGridControl: boolean
72
+ UIControlAlias?: string
73
+ Name: string
74
+ FormatTypeName: string
75
+ Regex: string
76
+ Hint: string
77
+ FormatCategoryId: number
78
+ ClientFormatCategoryId: number
79
+ AttributeTypeValueTypeName: string
80
+ DtoState: number
81
+ FriendlyAttributeTypeValueTypeName: string
82
+ Translations: any
83
+ AttributeLength?: string
84
+ CustomHintTranslations: string
85
+ }
86
+
87
+ export interface PositionTypeDto {
88
+ PositionTypeId: number
89
+ Name: string
90
+ Translations?: string
91
+ DtoState: number
92
+ }
93
+
94
+ export interface StepTypeDto {
95
+ StepTypeId: number
96
+ Name: string
97
+ DtoState: number
98
+ Translations?: string
99
+ }
100
+
101
+ export interface AttributeSetDto {
102
+ AttributeSetId: number
103
+ IsRecord: boolean
104
+ RecordContextAttributeId: any
105
+ Name: string
106
+ Translations?: string
107
+ DtoState: number
108
+ }
109
+
110
+ export interface FormatTypeDto {
111
+ FormatTypeId: number
112
+ Regex: string
113
+ Hint: string
114
+ CategoryId: number
115
+ Name: string
116
+ DTOState: number
117
+ }
118
+
119
+ export interface RoleTypeDto {
120
+ RoleTypeId: number
121
+ IsProvider: boolean
122
+ IsRequester: boolean
123
+ IsAgent: boolean
124
+ IsSystem: boolean
125
+ SystemName: string
126
+ }
127
+
128
+ export interface CompanyLanguageDto {
129
+ CompanyLanguageId: number
130
+ LanguageId: number
131
+ Key: string
132
+ IsDefault: boolean
133
+ Name: string
134
+ Rtl: boolean
135
+ IsAutoTranslate: boolean
136
+ IsKeywordTranslationReady: boolean
137
+ IsCustomTranslationReady: boolean
138
+ IsDeletionReady: boolean
139
+ IsReTranslationReady: boolean
140
+ DtoState: number
141
+ }
142
+
143
+ export interface IntegrationConnectionDto {
144
+ IntegrationConnectionId: number
145
+ Url: string
146
+ UserName?: string
147
+ Password: string
148
+ Name: string
149
+ DtoState: number
150
+ }
151
+
152
+ export interface AttributeTypeValueTypeDto {
153
+ AttributeTypeValueTypeId: number
154
+ SystemName: string
155
+ Name: string
156
+ }
157
+
158
+ export interface CompanyEncryptionCertificateDto {
159
+ CompanyEncryptionCertificateId: number
160
+ CertificateFilePath: string
161
+ FullCertificateFilePath: string
162
+ Alias: string
163
+ ExpiryDate: string
164
+ NotificationEmail: string
165
+ DtoState: number
166
+ }
167
+
168
+ export interface QuestionnaireTemplateDto {
169
+ QuestionnaireTemplateId: number
170
+ Name: string
171
+ Translations?: string
172
+ QuestionnaireFilePath?: string
173
+ Weight: string
174
+ IsActive: boolean
175
+ IsChatbot?: boolean
176
+ ChatbotExtra?: string
177
+ DtoState: number
178
+ }
179
+
180
+ export interface GroupDto {
181
+ GroupId: number
182
+ Name: string
183
+ SequenceNo: number
184
+ InteractorTypeId: number
185
+ Translations?: string
186
+ IsSystemGenerated: boolean
187
+ UiviewAlias?: string
188
+ DtoState: number
189
+ }
190
+
191
+ export interface CloudPrinterDto {
192
+ CloudPrinterId: number
193
+ CloudAccountId: number
194
+ PrinterOriginalId: string
195
+ Name: string
196
+ Description: string
197
+ Proxy: string
198
+ DisplayName: string
199
+ Type: string
200
+ IsTosAccepted: boolean
201
+ DtoState: number
202
+ }
203
+
204
+ export interface AccountingBookTypeDto {
205
+ AccountingBookTypeId: number
206
+ BookTypeId: number
207
+ Weight?: string
208
+ Description?: string
209
+ DescriptionTranslations?: string
210
+ Name: string
211
+ Translations?: string
212
+ DtoState: number
213
+ }
214
+
215
+ export interface RequestStatusDto {
216
+ RequestStatusId: number
217
+ SystemName: string
218
+ IsClosed: boolean
219
+ }
220
+
221
+ export interface CountryDto {
222
+ CountryId: number
223
+ Name: string
224
+ CountryIsoCode1: string
225
+ CountryIsoCode2: string
226
+ CountryCode: string
227
+ DtoState: number
228
+ }
229
+
230
+ export interface RoleDto {
231
+ RoleId: number
232
+ Name: string
233
+ RoleTypeId: number
234
+ IsDerived: boolean
235
+ IsSystemGenerated: boolean
236
+ IsRequester: boolean
237
+ IsAgent: boolean
238
+ IsProvider: boolean
239
+ IsSystem: boolean
240
+ InteractorTypeId: number
241
+ ObjectId?: number
242
+ SystemName: string
243
+ Translations?: string
244
+ UiviewAlias: any
245
+ DtoState: number
246
+ }
247
+
248
+ export interface PriceBookTypeDto {
249
+ PriceBookTypeId: number
250
+ Name: string
251
+ DtoState: number
252
+ Translations: string
253
+ Details: string
254
+ }
255
+
256
+ export interface UnitOfMeasureTypeDto {
257
+ UnitOfMeasureTypeId: number
258
+ Name: string
259
+ DtoState: number
260
+ Translations: string
261
+ Details: string
262
+ }
263
+
264
+ export interface NotificationMessageDto {
265
+ NotificationMessageId: number
266
+ CompanyId: number
267
+ NotificationMessageTypeId: number
268
+ Name: string
269
+ StepActionId: number
270
+ DtoState: number
271
+ Message: string
272
+ }
273
+
@@ -0,0 +1,23 @@
1
+ export interface GetDocumentTypesOutput
2
+ {
3
+ DocumentTypeId: number;
4
+ Name: string;
5
+ InteractorTypeId: number;
6
+ DtoState: number;
7
+ DocumentSubTypeList: DocumentSubTypeDto[];
8
+ Translations: string;
9
+ }
10
+
11
+ export interface DocumentSubTypeDto
12
+ {
13
+ DocumentSubTypeId: number;
14
+ DocumentTypeId: number;
15
+ Name: string;
16
+ DocumentSuperiorManagerRoleId: number;
17
+ DocumentDirectManagerRoleId: number;
18
+ DtoState: number;
19
+ Translations: string;
20
+ AttributeSetId: number;
21
+ DocumentSuperiorManagerRoleName: string;
22
+ DocumentDirectManagerRoleName: string;
23
+ }
@@ -0,0 +1,81 @@
1
+ export interface GetInteractorListOutput {
2
+ InteractorId: number
3
+ UnitId: number
4
+ FirstName: string
5
+ LastName: string
6
+ IsUser: boolean
7
+ FullName: string
8
+ Email: string
9
+ IsSystem: boolean
10
+ ImagePath: any
11
+ FullImagePath: string
12
+ IsSystemGenerated: boolean
13
+ Mobile: any
14
+ PersonalRoleId: number
15
+ Translations: any
16
+ QrimagePath: string
17
+ FullQrimagePath: any
18
+ ExternalId: any
19
+ BarcodeId: any
20
+ ExternalIdChanged: boolean
21
+ ExternalImagePath: any
22
+ GalleryImagesString: any
23
+ FullGalleryImagesString: any
24
+ BarcodeContent: any
25
+ BarcodeChanged: boolean
26
+ BarcodeFormatId: number
27
+ BarcodeImagePath: any
28
+ FullBarcodeImagePath: any
29
+ Qrid: string
30
+ IsPublicSearchEnabled: boolean
31
+ SearchCategory: any
32
+ SearchSubCategory: any
33
+ SearchTags: any
34
+ IbeaconId: any
35
+ Location: any
36
+ Rfidtags: any
37
+ GeoRange: any
38
+ GeoRangeUitype: any
39
+ GeoRangeUivalue: any
40
+ HasAssets: boolean
41
+ HasItems: boolean
42
+ DisableNotification: boolean
43
+ EnableIntegrationTracing: boolean
44
+ CloudPrinterId: any
45
+ IsCustomReceipt: boolean
46
+ CustomReceiptAlias: any
47
+ IsSocialUser: boolean
48
+ UserTypeId: number
49
+ WalletAddress: any
50
+ LinkedInteractorId: any
51
+ IsApiUser: any
52
+ ApiUserToken: any
53
+ DtoState: number
54
+ RowsCount: number
55
+ UnitName: any
56
+ InteractorTypeId: number
57
+ IsNewUser: boolean
58
+ Username: string
59
+ Password: any
60
+ SocialId: string
61
+ IsActive: boolean
62
+ IsSocialActive: boolean
63
+ UnitDto: any
64
+ AllowAccessToOldPortal: boolean
65
+ IsReadOnlyPermision: boolean
66
+ RestrucitAccessToCustomPortal: boolean
67
+ IsInteractorMailActivationRequired: boolean
68
+ MailActivationId: any
69
+ IsInteractorSmsActivationRequired: boolean
70
+ SmsActivationId: any
71
+ SocialDetails: any
72
+ IsTraceable: boolean
73
+ IsLiveLocation: boolean
74
+ IsDemand: boolean
75
+ IsSupply: boolean
76
+ CopyPasswordToKeyVault: boolean
77
+ OpenPgppublicKey: any
78
+ SearchTextConcat: any
79
+ PrivilegeLevel: number
80
+ DeploymentEnvironment: string
81
+ }
@@ -0,0 +1,59 @@
1
+ export interface GetInteractorTypeListOutput {
2
+ InteractorTypeId: number
3
+ Name: string
4
+ IsDefault: boolean
5
+ Translations?: string
6
+ IsPublicRegistrationEnabled: boolean
7
+ StakeholderId: number
8
+ IsMailActivationRequired: boolean
9
+ IsSmsactivationRequired: boolean
10
+ IsAnonymousUserEnabled: boolean
11
+ OfflineShortcutServiceListFilePath?: string
12
+ FullOfflineShortcutServiceListFilePath: string
13
+ IsRestrictedToCustomApp: boolean
14
+ IsExternalIdrequired: boolean
15
+ OfflineAnonymousCatalogFilePath?: string
16
+ FullOfflineAnonymousCatalogFilePath: string
17
+ IsCreateDefaultAssetSubGroup: boolean
18
+ IsCreateDefaultItemSubGroup: boolean
19
+ DefaultAssetGroupId?: number
20
+ DefaultItemGroupId?: number
21
+ IsAutoFollowAsset: boolean
22
+ IsAutoFollowItem: boolean
23
+ IsAutoAddRole: boolean
24
+ LastAnonymousExportFilePath: any
25
+ FullLastAnonymousExportFilePath: string
26
+ DefaultAssetList?: string
27
+ DefaultAssetSubGroupAttributeSetId?: number
28
+ DefaultItemSubGroupAttributeSetId?: number
29
+ DefaultItemList?: string
30
+ LastIndivitiualFilesExportFilePath: any
31
+ FullLastIndivitiualFilesExportFilePath: string
32
+ Weight: string
33
+ Alias: string
34
+ IsInterDomainAuthentication: boolean
35
+ InterDomainAuthenticationName?: string
36
+ InterDomainAuthenticationUserId?: number
37
+ Uitemplate?: string
38
+ EnableAdvancedSecurity?: boolean
39
+ WalletSessionsDefaultAzureConnection?: string
40
+ EnforceSingleLogin?: boolean
41
+ SessionTimeoutInMinutes: any
42
+ AttributeSetId: any
43
+ IsTraceable: any
44
+ IsDemand: any
45
+ IsSupply: any
46
+ IsLiveLocation: any
47
+ IsPublicSearchEnabled: any
48
+ DefaultNewWallet?: boolean
49
+ GPTModel?: string
50
+ GPTStyle?: string
51
+ GPTPrompt?: string
52
+ GPTIntentionList?: string
53
+ IsPrivate?: boolean
54
+ OpenPgppublicKey: any
55
+ PrivilegeLevel: number
56
+ DtoState: number
57
+ DeploymentEnvironment: string
58
+ }
59
+
@@ -0,0 +1,92 @@
1
+ export interface GetItemListOutput {
2
+ ItemId: number;
3
+ Name: string;
4
+ ItemSubGroupId: number;
5
+ Flag1: boolean;
6
+ Flag2: boolean;
7
+ Description?: string;
8
+ IsActive: boolean;
9
+ Weight?: string;
10
+ ImagePath?: string;
11
+ FullImagePath?: string;
12
+ Translations?: string;
13
+ DescriptionTranslations?: string;
14
+ IsRecommended: boolean;
15
+ IsNew: boolean;
16
+ ShortcutItemId?: number;
17
+ ShortcutInteractorTypeId?: number;
18
+ ShortcutItemGroupId?: number;
19
+ ShortcutItemSubGroupId?: number;
20
+ IsShortcut: boolean;
21
+ ExternalId?: string;
22
+ ExternalIdChanged: boolean;
23
+ QrimagePath?: string;
24
+ FullQrimagePath?: string;
25
+ BarcodeId?: number;
26
+ IsGuestPublic?: boolean;
27
+ IsQrguestPublic: boolean;
28
+ IsSocialMediaGuestPublic: boolean;
29
+ Key?: string;
30
+ ExternalImagePath?: string;
31
+ GalleryImagesString?: string;
32
+ FullGalleryImagesString?: string;
33
+ BarcodeContent?: string;
34
+ BarcodeFormatId?: number;
35
+ BarcodeImagePath?: string;
36
+ FullBarcodeImagePath?: string;
37
+ BarcodeChanged: boolean;
38
+ Qrid?: string;
39
+ HasAssets: boolean;
40
+ Extra1?: string;
41
+ Extra2?: string;
42
+ Keywords?: string;
43
+ IsDeleted: boolean;
44
+ DeletionDate?: Date;
45
+ HasStaticAttributes: boolean;
46
+ IsPublicSearchEnabled: boolean;
47
+ SearchCategory?: string;
48
+ SearchSubCategory?: string;
49
+ SearchTags?: string;
50
+ IbeaconId?: string;
51
+ Location?: string;
52
+ Rfidtags?: string;
53
+ IsAssetSearchKeysFilter: boolean;
54
+ TimeStamp?: Date;
55
+ Rv?: Uint8Array;
56
+ ItemGuid?: string;
57
+ GeoRange?: number;
58
+ GeoRangeUitype?: number;
59
+ GeoRangeUivalue?: number;
60
+ SearchTextConcat?: string;
61
+ HideAttributes: boolean;
62
+ OnClickShow?: string;
63
+ Balance?: string;
64
+ Cost?: string;
65
+ Price?: string;
66
+ IsExpired: boolean;
67
+ IsRedeemed: boolean;
68
+ ActiveSchedulerData?: string;
69
+ ExpirySchedulerData?: string;
70
+ RedeemSchedulerData?: string;
71
+ ExpireyDate?: Date;
72
+ ActivationDate?: Date;
73
+ RedeemDate?: Date;
74
+ DeleteIfExpire: boolean;
75
+ Quantity?: string;
76
+ ReservedQuantity?: string;
77
+ Version?: string;
78
+ WalletAddress?: string;
79
+ Variations?: string;
80
+ Options?: string;
81
+ UnitOfMeasure?: string;
82
+ ValueOfMeasure?: number;
83
+ PriceDetails?: string;
84
+ CostDetails?: string;
85
+ ItemKindId?: number;
86
+ StockKeepingUnit?: string;
87
+ GPTIntention?: string;
88
+ GPTPrompt?: string;
89
+ DtoState: number;
90
+ DeploymentEnvironment: string;
91
+ }
92
+
@@ -0,0 +1,10 @@
1
+ export interface GetPositionsOutput {
2
+ positionId?: number;
3
+ name: string;
4
+ unitId: number;
5
+ isVacant: boolean;
6
+ positionTypeId: number;
7
+ requesterRoleId?: number;
8
+ providerRoleId?: number;
9
+ dtoState?: number;
10
+ }
@@ -0,0 +1,18 @@
1
+ export interface GetRoleListByPermissionOutput {
2
+ RoleId: number
3
+ Name: string
4
+ RoleTypeId: number
5
+ IsDerived: boolean
6
+ IsSystemGenerated: boolean
7
+ IsRequester: boolean
8
+ IsAgent: boolean
9
+ IsProvider: boolean
10
+ IsSystem: boolean
11
+ InteractorTypeId: number
12
+ ObjectId?: number
13
+ SystemName: string
14
+ Translations: any
15
+ UiviewAlias?: string
16
+ DtoState: number
17
+ }
18
+
@@ -0,0 +1,95 @@
1
+ export class GetServiceAttributeListOutput {
2
+ AttributeId: number = 0;
3
+ Name: string = '';
4
+ ObjectId: number = 0;
5
+ AttributeTypeId: number = 0;
6
+ IsRequired: boolean = false;
7
+ Value: string = '';
8
+ IsRequesterVisible: boolean | null = null;
9
+ IsProviderVisible: boolean | null = null;
10
+ IsRequesterEditable: boolean = false;
11
+ IsProviderEditable: boolean = false;
12
+ SequenceNo: number = 0;
13
+ IsComputed: boolean = false;
14
+ Formula: string = '';
15
+ Group: string = '';
16
+ GroupSequenceNo: number | null = null;
17
+ ExtendedValue: string = '';
18
+ GroupId: number | null = null;
19
+ ShowInProfile: boolean | null = null;
20
+ Translations: string = '';
21
+ Alias: string = '';
22
+ PlaceHolder: string = '';
23
+ CopyToRequest: boolean | null = null;
24
+ ShowInReport: boolean | null = true;
25
+ Description: string = '';
26
+ DescriptionTranslations: string = '';
27
+ PlaceHolderTranslations: string = '';
28
+ ValueTranslations: string = '';
29
+ IsFiltered: boolean = false;
30
+ FilterAttributeAlias: string = '';
31
+ IsParameter: boolean = false;
32
+ IsAutoCapture: boolean = false;
33
+ SchedulerData: string = '';
34
+ IsComputedInitialValue: boolean = false;
35
+ InitialValueFormula: string = '';
36
+ IsValidationEnabled: boolean = false;
37
+ ValidationRule: string = '';
38
+ ValidationRuleFailedComment: string = '';
39
+ ValidationRuleFailedCommentTranslation: string = '';
40
+ IsIntegrationEditable: boolean = false;
41
+ IsRequiredCondition: string = '';
42
+ OnChangeRecalculate: boolean = false;
43
+ UseInService: boolean | null = null;
44
+ AttachmentOriginalName: string = '';
45
+ FullFilePath: string = '';
46
+ PageNumber: number = 1;
47
+ IsPhantomVisible: boolean | null = null;
48
+ IsResetIf: boolean | null = null;
49
+ ResetIfFormula: string = '';
50
+ IsAsynchronousIntegration: boolean = false;
51
+ ApplyToExisting: boolean = false;
52
+ DtoState: number = 0;
53
+ AttributeGroupId: number = 0;
54
+ SourceAttributeId: number = 0;
55
+ AlternateValue: string = '';
56
+ AlternateName: string = '';
57
+ AlternateGroup: string = '';
58
+ AlternateDescription: string = '';
59
+ AlternatePlaceHolder: string = '';
60
+ Extra1: string = '';
61
+ Extra2: string = '';
62
+ IsGroupChecked: boolean = false;
63
+ IsChecked: boolean = false;
64
+ IsDisabledViewFile: boolean = false;
65
+ FileStorage: Array<any> = [];
66
+ FormatName: string = '';
67
+ IsProfileDocument: boolean | null = true;
68
+ IsRequesterEditableCondition: string = '';
69
+ IsProviderEditableCondition: string = '';
70
+ IsActionAttribute: boolean | null = null;
71
+ ActionAttributeDetails: string = '';
72
+ ObjectType: number = 0;
73
+
74
+ constructor(objectId: number, isParameter: boolean, pageName: string) {
75
+ this.ObjectId = objectId;
76
+ this.IsParameter = isParameter;
77
+ this.FormatName = `${this.Name}:[${this.Alias}],`;
78
+
79
+ if (pageName === 'ServiceAttribute' || pageName === 'ServiceParameter' || pageName === 'ServiceStepAttribute') {
80
+ this.IsProviderEditable = true;
81
+ this.IsRequesterEditable = true;
82
+ this.IsProviderVisible = true;
83
+ this.IsRequesterVisible = true;
84
+ }
85
+ if (pageName === 'AssetSubGroupAttributeList' || pageName === 'ItemSubGroupAttributeList') {
86
+ this.IsProviderVisible = true;
87
+ this.IsRequesterVisible = true;
88
+ this.PageNumber = 1;
89
+ }
90
+ if (pageName === 'AssetAttributeList' || pageName === 'ItemAttributeList') {
91
+ this.PageNumber = 1;
92
+ }
93
+ }
94
+ }
95
+