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.
- package/README.md +104 -0
- package/package.json +18 -0
- package/src/CoreServices/configurationServices.js +1501 -0
- package/src/CoreServices/darAlBerServices.js +239 -0
- package/src/config.js +22 -0
- package/src/index.d.ts +908 -0
- package/src/index.js +101 -0
- package/src/modals/input-modals/CreateNewCorrespondenceInput.ts +7 -0
- package/src/modals/input-modals/GetAssetBlazorViewInput.ts +4 -0
- package/src/modals/input-modals/GetAssetListInput.ts +8 -0
- package/src/modals/input-modals/GetAttributeTypesInput.ts +6 -0
- package/src/modals/input-modals/GetDABAssetsInput.ts +4 -0
- package/src/modals/input-modals/GetDocumentTypesInput.ts +6 -0
- package/src/modals/input-modals/GetInteractorListInput.ts +5 -0
- package/src/modals/input-modals/GetItemListInput.ts +8 -0
- package/src/modals/input-modals/GetPositionsInput.ts +6 -0
- package/src/modals/input-modals/GetRoleListByPermissionInput.ts +13 -0
- package/src/modals/input-modals/GetServiceAttributeListInput.ts +8 -0
- package/src/modals/input-modals/GetServiceCategoryInput.ts +6 -0
- package/src/modals/input-modals/GetServiceListInput.ts +10 -0
- package/src/modals/input-modals/GetServiceStepListInput.ts +8 -0
- package/src/modals/input-modals/GetServiceSubCategoryInput.ts +7 -0
- package/src/modals/input-modals/GetStepTypesInput.ts +7 -0
- package/src/modals/input-modals/LoginUserInput.ts +8 -0
- package/src/modals/input-modals/MaintainAttributeListInput.ts +6 -0
- package/src/modals/input-modals/MaintainAttributeTypeInput.ts +142 -0
- package/src/modals/input-modals/MaintainSubCategoryInput.ts +6 -0
- package/src/modals/output-modals/BaseResponse.ts +13 -0
- package/src/modals/output-modals/GetAssetBlazorViewOutput.ts +11 -0
- package/src/modals/output-modals/GetAssetListOutput.ts +92 -0
- package/src/modals/output-modals/GetAttributeTypesOutput.ts +37 -0
- package/src/modals/output-modals/GetDefaultConfigurationOutput.ts +273 -0
- package/src/modals/output-modals/GetDocumentTypesOutput.ts +23 -0
- package/src/modals/output-modals/GetInteractorListOutput.ts +81 -0
- package/src/modals/output-modals/GetInteractorTypeListOutput.ts +59 -0
- package/src/modals/output-modals/GetItemListOutput.ts +92 -0
- package/src/modals/output-modals/GetPositionsOutput.ts +10 -0
- package/src/modals/output-modals/GetRoleListByPermissionOutput.ts +18 -0
- package/src/modals/output-modals/GetServiceAttributeListOutput.ts +95 -0
- package/src/modals/output-modals/GetServiceCategoryOutput.ts +62 -0
- package/src/modals/output-modals/GetServiceListOutput.ts +183 -0
- package/src/modals/output-modals/GetServiceStepListOutput.ts +163 -0
- package/src/modals/output-modals/GetServiceSubCategoryOuput.ts +71 -0
- package/src/modals/output-modals/GetStepTypesOutput.ts +7 -0
- package/src/modals/output-modals/GetUnitListOutput.ts +27 -0
- package/src/modals/output-modals/LoginUserOutput.ts +8 -0
- package/src/sdkUtilities.js +22 -0
- package/src/web-services/apiConstants.js +99 -0
- 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,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,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,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
|
+
}
|