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
package/src/index.js ADDED
@@ -0,0 +1,101 @@
1
+ const {
2
+ GetServiceList,
3
+ MaintainServiceList,
4
+ GetServiceStepList,
5
+ MaintainServiceStepList,
6
+ GetAttributeList,
7
+ MaintainAttributeList,
8
+ GetServiceCategoryList,
9
+ MaintainServiceCategoryList,
10
+ GetServiceSubCategoryList,
11
+ MaintainServiceSubCategoryList,
12
+ GetAssetList,
13
+ MaintainAssetList,
14
+ GetItemList,
15
+ MaintainItemList,
16
+ GetPositionList,
17
+ MaintainPositionList,
18
+ GetStepTypeList,
19
+ MaintainStepTypeList,
20
+ GetDocumentTypeList,
21
+ MaintainDocumentTypeList,
22
+ GetAttributeTypeList,
23
+ MaintainAttributeTypeList,
24
+ Login,
25
+ CreateWriteSAS,
26
+ GetInteractorTypeList,
27
+ GetRoleListByPermission,
28
+ CreateNewCorrespondence,
29
+ GetDefaultConfigurationList,
30
+ getCorrespondenceList,
31
+ GetAssetBlazorViewList
32
+ } = require("./CoreServices/configurationServices");
33
+ const {
34
+ GetEnglishNewsList,
35
+ GetArabicNewsList,
36
+ GetGeneralDonationsList,
37
+ GetQuickDonationsList,
38
+ GetCampaignsList,
39
+ GetBranchesList,
40
+ GetBanksAccountsList,
41
+ GetInteractorsList
42
+ } = require("./CoreServices/darAlBerServices");
43
+
44
+ const ConfigurationServices = {
45
+ GetServiceList,
46
+ MaintainServiceList,
47
+ GetServiceStepList,
48
+ MaintainServiceStepList,
49
+ GetAttributeList,
50
+ MaintainAttributeList,
51
+ GetServiceCategoryList,
52
+ MaintainServiceCategoryList,
53
+ GetServiceSubCategoryList,
54
+ MaintainServiceSubCategoryList,
55
+ GetAssetList,
56
+ MaintainAssetList,
57
+ GetItemList,
58
+ MaintainItemList,
59
+ GetPositionList,
60
+ MaintainPositionList,
61
+ GetStepTypeList,
62
+ MaintainStepTypeList,
63
+ GetDocumentTypeList,
64
+ MaintainDocumentTypeList,
65
+ GetAttributeTypeList,
66
+ MaintainAttributeTypeList,
67
+ Login,
68
+ CreateWriteSAS,
69
+ GetInteractorTypeList,
70
+ GetRoleListByPermission,
71
+ CreateNewCorrespondence,
72
+ GetDefaultConfigurationList,
73
+ getCorrespondenceList,
74
+ GetAssetBlazorViewList
75
+ };
76
+
77
+ const DABConfigurationServices = {
78
+ GetEnglishNewsList,
79
+ GetArabicNewsList,
80
+ GetGeneralDonationsList,
81
+ GetQuickDonationsList,
82
+ GetCampaignsList,
83
+ GetBranchesList,
84
+ GetBanksAccountsList,
85
+ GetInteractorsList
86
+ };
87
+
88
+ const {
89
+ Init,
90
+ SetToken
91
+ } = require("./sdkUtilities");
92
+ const ConfigurationSDKConfig = {
93
+ Init,
94
+ SetToken
95
+ }
96
+
97
+ module.exports = {
98
+ ConfigurationServices,
99
+ ConfigurationSDKConfig,
100
+ DABConfigurationServices
101
+ };
@@ -0,0 +1,7 @@
1
+ export interface CreateNewCorrespondenceInput {
2
+ name: string;
3
+ description: string;
4
+ subCategoryAlias: string;
5
+ }
6
+
7
+
@@ -0,0 +1,4 @@
1
+ export interface GetAssetBlazorViewInput {
2
+ interactorTypeId: number;
3
+ deploymentEnvironment: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ export class GetAssetListInput {
2
+ PageIndex: number = 0;
3
+ PageSize: number = 100;
4
+ AssetId: number = -12345;
5
+ AssetSubGroupId: number = -12345;
6
+ ShortcutAssetId: number = -12345;
7
+ AssetGroupId: number = -12345;
8
+ }
@@ -0,0 +1,6 @@
1
+ export class GetAttributeTypesInput
2
+ {
3
+ PageSize: number = 100;
4
+ PageIndex: number = 0;
5
+ AttributeTypeId: number = -12345;
6
+ }
@@ -0,0 +1,4 @@
1
+ export class GetDABAssetsInput {
2
+ PageIndex: number = 0;
3
+ PageSize: number = 100;
4
+ }
@@ -0,0 +1,6 @@
1
+ export class GetDocumentTypesInput
2
+ {
3
+ DocumentTypeId: number = -12345;
4
+ InteractorTypeId: number = -12345;
5
+ WithDocumentSubTypeList: boolean = false;
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface GetInteractorListInput {
2
+ unitId: number;
3
+ pageIndex: number;
4
+ pageSize: number;
5
+ }
@@ -0,0 +1,8 @@
1
+ export class GetItemListInput {
2
+ PageIndex: number = 0;
3
+ PageSize: number = 100;
4
+ ItemId: number = -12345;
5
+ ShortcutItemId: number = -12345;
6
+ ItemSubGroupId: number = -12345;
7
+ ItemGroupId: number = -12345;
8
+ }
@@ -0,0 +1,6 @@
1
+ export class GetPositionsInput {
2
+ pageIndex: number = 0;
3
+ pageSize: number = 100;
4
+ positionId: number = -12345;
5
+ unitId: number = -12345;
6
+ }
@@ -0,0 +1,13 @@
1
+ export interface GetRoleListByPermissionInput {
2
+ pageIndex: number
3
+ pageSize: number
4
+ interactorTypeId: number
5
+ roleTypeId: number
6
+ isProvider: boolean
7
+ isRequester: boolean
8
+ isAgent: boolean
9
+ isSystemGenerated: boolean
10
+ isDerived: boolean
11
+ isSystem: boolean
12
+ }
13
+
@@ -0,0 +1,8 @@
1
+ export class GetServiceAttributeListInput {
2
+ ObjectType: number = -12345;
3
+ ObjectId: number = -12345;
4
+ _ObjectId?: number = -12345;
5
+ IsParameter: boolean = false;
6
+ PageSize: number = 200;
7
+ }
8
+
@@ -0,0 +1,6 @@
1
+ export class GetServiceCategoryInput {
2
+ pageSize: number = 100;
3
+ pageIndex: number = 0;
4
+ interactorTypeId: number = -12345;
5
+ serviceCategoryId: number = -12345;
6
+ }
@@ -0,0 +1,10 @@
1
+ export interface GetServiceListInput {
2
+ pageSize: number;
3
+ pageIndex: number;
4
+ interactorTypeId: number;
5
+ serviceCategoryId: number;
6
+ serviceSubCategoryId: number;
7
+ serviceId: number;
8
+ serviceIdList: number[];
9
+ shortcutServiceId: number;
10
+ }
@@ -0,0 +1,8 @@
1
+ export class GetServiceStepListInput {
2
+ pageSize: number = 100;
3
+ pageIndex: number = 0;
4
+ serviceId: number = -12345;
5
+ serviceStepId: number = -12345;
6
+ providerRoleId: number = -12345;
7
+ withService: boolean = false;
8
+ }
@@ -0,0 +1,7 @@
1
+ export class GetServiceSubCategoryInput {
2
+ pageSize: number = 100;
3
+ pageIndex: number = 0;
4
+ interactorTypeId: number = -12345;
5
+ serviceCategoryId: number = -12345;
6
+ serviceSubCategoryId: number = -12345;
7
+ }
@@ -0,0 +1,7 @@
1
+ export interface GetStepTypesInput
2
+ {
3
+ StepTypeId: number;
4
+ Name: string;
5
+ Translations: string;
6
+ DtoState: number;
7
+ }
@@ -0,0 +1,8 @@
1
+ export class LoginUserInput {
2
+ domainName: string = "";
3
+ username: string = "";
4
+ password: string = "";
5
+ isSuperUser?: boolean = true;
6
+ clientType: string = "";
7
+
8
+ }
@@ -0,0 +1,6 @@
1
+ import { GetServiceAttributeListOutput } from "../output-modals/GetServiceAttributeListOutput";
2
+
3
+ export interface MaintainAttributeListInput {
4
+ AttributeList: GetServiceAttributeListOutput[];
5
+ ObjectType: number;
6
+ }
@@ -0,0 +1,142 @@
1
+ import { GetAttributeTypesOutput } from "../output-modals/GetAttributeTypesOutput";
2
+
3
+ export interface MaintainAttributeTypeInput {
4
+ attributeTypeDto?: GetAttributeTypesOutput;
5
+ attributeTypeSimpleIntegrationDto?: AttributeTypeSimpleIntegrationDto;
6
+ attributeTypeValueDtos?: AttributeTypeValueDto[];
7
+ attributeTypeRecordDto?: AttributeTypeRecordDto;
8
+ attributeTypeAssetDtos?: AttributeTypeAssetListDto;
9
+ attributeTypeItemDtos?: AttributeTypeItemListDto;
10
+ attributeTypeAssetSubGroupDtos?: AttributeTypeAssetSubGroupListDto;
11
+ attributeTypeItemSubGroupDtos?: AttributeTypeItemSubGroupListDto;
12
+ attributeTypeUnitDtos?: AttributeTypeUnitListDto;
13
+ attributeTypeInteractorDtos?: AttributeTypeInteractorListDto;
14
+ attributeTypePositionDtos?: AttributeTypePositionListDto;
15
+ attributeTypeDocumentDto?: AttributeTypeDocumentDto;
16
+ attributeTypePersonalUnitMemberDto?: AttributeTypePersonalUnitMemberDto;
17
+ }
18
+
19
+ export interface AttributeTypeSimpleIntegrationDto {
20
+ attributeTypeId: number;
21
+ attributeTypeSimpleIntegrationId: number;
22
+ integrationConnectionId: number;
23
+ integrationMethodId: number;
24
+ integrationFunctionName: string;
25
+ integrationParameters: string;
26
+ integrationResult: string;
27
+ dtoState: number;
28
+ }
29
+
30
+ export interface AttributeTypeValueDto {
31
+ isGenerate?: boolean;
32
+ attributeTypeId?: number;
33
+ attributeTypeValueId?: number;
34
+ sequenceNo?: number;
35
+ name: string;
36
+ translations?: string;
37
+ value: string;
38
+ key?: string;
39
+ isAddCommentEnabled?: boolean;
40
+ isAddAttachmentEnabled?: boolean;
41
+ addCommentLabel?: string;
42
+ addCommentLabelTranslations?: string;
43
+ imagePath?: string;
44
+ fullImagePath?: string;
45
+ extendedValue?: string;
46
+ hideImage?: boolean;
47
+ isPicker?: boolean;
48
+ isQuickView?: boolean;
49
+ isMultipleChoice?: boolean;
50
+ dtoState?: number;
51
+ }
52
+
53
+ export interface AttributeTypeRecordDto {
54
+ attributeTypeRecordId?: number;
55
+ attributeTypeId?: number;
56
+ attributeTypeDefinition?: string;
57
+ attributeSetId?: number;
58
+ allowUndefinedAttributes?: boolean;
59
+ isGallery?: boolean;
60
+ isHideLabels?: boolean;
61
+ dtoState?: number;
62
+ }
63
+
64
+ export interface AttributeTypeAssetListDto {
65
+ attributeTypeAssetListId?: number;
66
+ stakeholderId?: number;
67
+ interactorTypeId?: number;
68
+ assetGroupId?: number;
69
+ assetSubGroupId?: number;
70
+ attributeTypeId?: number;
71
+ dtoState?: number;
72
+ }
73
+
74
+ export interface AttributeTypeItemListDto {
75
+ attributeTypeItemListId?: number;
76
+ stakeholderId?: number;
77
+ interactorTypeId?: number;
78
+ itemGroupId?: number;
79
+ itemSubGroupId?: number;
80
+ attributeTypeId?: number;
81
+ dtoState?: number;
82
+ }
83
+
84
+ export interface AttributeTypeAssetSubGroupListDto {
85
+ attributeTypeAssetSubGroupListId?: number;
86
+ stakeholderId?: number;
87
+ interactorTypeId?: number;
88
+ assetGroupId?: number;
89
+ attributeTypeId?: number;
90
+ dtoState?: number;
91
+ }
92
+
93
+ export interface AttributeTypeItemSubGroupListDto {
94
+ attributeTypeItemSubGroupListId?: number;
95
+ stakeholderId?: number;
96
+ interactorTypeId?: number;
97
+ itemGroupId?: number;
98
+ attributeTypeId?: number;
99
+ dtoState?: number;
100
+ }
101
+
102
+ export interface AttributeTypeUnitListDto {
103
+ attributeTypeUnitListId?: number;
104
+ stakeholderId?: number;
105
+ interactorTypeId?: number;
106
+ attributeTypeId?: number;
107
+ dtoState?: number;
108
+ }
109
+
110
+ export interface AttributeTypeInteractorListDto {
111
+ attributeTypeInteractorListId?: number;
112
+ stakeholderId?: number;
113
+ interactorTypeId?: number;
114
+ unitId?: number;
115
+ attributeTypeId?: number;
116
+ dtoState?: number;
117
+ }
118
+
119
+ export interface AttributeTypePositionListDto {
120
+ attributeTypePositionListId?: number;
121
+ stakeholderId?: number;
122
+ interactorTypeId?: number;
123
+ unitId?: number;
124
+ attributeTypeId?: number;
125
+ dtoState?: number;
126
+ }
127
+
128
+ export interface AttributeTypeDocumentDto {
129
+ attributeTypeDocumentId?: number;
130
+ attributeTypeId?: number;
131
+ interactorTypeId?: number;
132
+ documentSubTypeId?: number;
133
+ dtoState?: number;
134
+ }
135
+
136
+ export interface AttributeTypePersonalUnitMemberDto {
137
+ attributeTypePersonalUnitMemberId?: number;
138
+ attributeTypeId?: number;
139
+ interactorTypeId?: number;
140
+ dtoState?: number;
141
+ }
142
+
@@ -0,0 +1,6 @@
1
+ import { GetServiceSubCategoryOutput } from "../output-modals/GetServiceSubCategoryOuput";
2
+
3
+ export interface MaintainSubCategoryInput {
4
+ ServiceSubCategoryList: GetServiceSubCategoryOutput[];
5
+ DeleteAllServices: boolean;
6
+ }
@@ -0,0 +1,13 @@
1
+ export interface BaseResponse<T> {
2
+ Message: string
3
+ StatusCode: number
4
+ Result: T
5
+ HeaderValue: string
6
+ }
7
+
8
+ export interface BaseErrorResponse {
9
+ status: number
10
+ message: string
11
+ source: string
12
+ }
13
+
@@ -0,0 +1,11 @@
1
+ export interface GetAssetBlazorViewOutput {
2
+ Id: number;
3
+ ObjectId: number;
4
+ Text: string;
5
+ Alias: string;
6
+ Weight: number | null;
7
+ ParentIdValue: number | null;
8
+ ParentObjectIdValue: number | null;
9
+ HasChildren: boolean;
10
+ Level: number;
11
+ }
@@ -0,0 +1,92 @@
1
+ export interface GetAssetListOutput {
2
+ AssetId: number;
3
+ Name: string;
4
+ AssetSubGroupId: 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
+ ShortcutAssetId?: number;
17
+ ShortcutInteractorTypeId?: number;
18
+ ShortcutAssetGroupId?: number;
19
+ ShortcutAssetSubGroupId?: 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
+ HasItems: 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
+ IsItemSearchKeysFilter: boolean;
54
+ TimeStamp?: Date;
55
+ Rv?: Uint8Array;
56
+ AssetGuid?: 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
+ AssetKindId?: number;
86
+ StockKeepingUnit: string;
87
+ GPTIntention: string;
88
+ GPTPrompt: string;
89
+ DtoState: number;
90
+ DeploymentEnvironment: string;
91
+ }
92
+
@@ -0,0 +1,37 @@
1
+ export interface GetAttributeTypesOutput {
2
+ attributeTypeId?: number;
3
+ attributeTypeValueTypeName: string;
4
+ friendlyAttributeTypeValueTypeName: string;
5
+ formatTypeId?: number;
6
+ formatTypeName?: string;
7
+ formatCategoryId?: number;
8
+ clientFormatCategoryId?: number;
9
+ customRegex?: string;
10
+ customHint?: string;
11
+ regex?: string;
12
+ hint?: string;
13
+ attributeLength?: string;
14
+ name: string;
15
+ uiControlAlias?: string;
16
+ counterMinValue?: string;
17
+ counterMaxValue?: string;
18
+ counterStepValue?: string;
19
+ isPasswordMask?: boolean;
20
+ isEncryptionEnabled?: boolean;
21
+ companyEncryptionCertificateId?: number | null;
22
+ hideLabel?: boolean;
23
+ hideValue?: boolean;
24
+ hideImage?: boolean;
25
+ showInQuestionnaire?: boolean;
26
+ isMultipleChoice?: boolean;
27
+ isPicker?: boolean;
28
+ useGridControl?: boolean;
29
+ isIntegration?: boolean;
30
+ offlineSupport?: boolean;
31
+ offlineFilePath?: string;
32
+ allowOthers?: boolean;
33
+ translations?: string;
34
+ returnType?: number;
35
+ dtoState?: number;
36
+ customHintTranslations?: string;
37
+ }