@itentialopensource/adapter-calix_support_cloud 0.1.1
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/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.gitlab/.gitkeep +0 -0
- package/.gitlab/issue_templates/.gitkeep +0 -0
- package/.gitlab/issue_templates/Default.md +17 -0
- package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
- package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
- package/.jshintrc +3 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +170 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +3628 -0
- package/adapterBase.js +1787 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/DeviceDataManagement/action.json +150 -0
- package/entities/DeviceDataManagement/mockdatafiles/retrieveAllDevices-default.json +89 -0
- package/entities/DeviceDataManagement/mockdatafiles/retrieveDeviceByID-default.json +28 -0
- package/entities/DeviceDataManagement/mockdatafiles/retrieveDeviceByIPAddress-default.json +28 -0
- package/entities/DeviceDataManagement/mockdatafiles/retrieveDeviceByMACAddress-default.json +28 -0
- package/entities/DeviceDataManagement/mockdatafiles/retrieveDeviceBySerialNumber-default.json +28 -0
- package/entities/DeviceDataManagement/schema.json +25 -0
- package/entities/DeviceGroupManagement/action.json +189 -0
- package/entities/DeviceGroupManagement/mockdatafiles/addADeviceOrProvisioningRecordToAStaticGroup-default.json +1 -0
- package/entities/DeviceGroupManagement/mockdatafiles/removeADeviceFromAllStaticGroups-default.json +3 -0
- package/entities/DeviceGroupManagement/mockdatafiles/retrieveAllDeviceGroups-default.json +34 -0
- package/entities/DeviceGroupManagement/mockdatafiles/retrieveAllStaticGroupMemberships-default.json +11 -0
- package/entities/DeviceGroupManagement/mockdatafiles/retrieveDeviceGroupByID-default.json +7 -0
- package/entities/DeviceGroupManagement/mockdatafiles/retrieveSingleStaticGroupMembershipRecord-default.json +9 -0
- package/entities/DeviceGroupManagement/mockdatafiles/retrieveStaticGroupMembershipsByDevice-default.json +11 -0
- package/entities/DeviceGroupManagement/schema.json +27 -0
- package/entities/DeviceProvisioningRecordManagement/action.json +148 -0
- package/entities/DeviceProvisioningRecordManagement/mockdatafiles/createProvisioningRecord-default.json +1 -0
- package/entities/DeviceProvisioningRecordManagement/mockdatafiles/retrieveAllProvisioningRecords-default.json +77 -0
- package/entities/DeviceProvisioningRecordManagement/mockdatafiles/retrieveProvisioningRecordByInternalID-default.json +77 -0
- package/entities/DeviceProvisioningRecordManagement/mockdatafiles/retrieveProvisioningRecordsByDevice-default.json +82 -0
- package/entities/DeviceProvisioningRecordManagement/mockdatafiles/retrieveProvisioningRecordsBySubscriber-default.json +82 -0
- package/entities/DeviceProvisioningRecordManagement/schema.json +25 -0
- package/entities/SubscriberManagement/action.json +190 -0
- package/entities/SubscriberManagement/mockdatafiles/retrieveAllSubscribers-default.json +27 -0
- package/entities/SubscriberManagement/mockdatafiles/retrieveSubscriberByCustomIdSubscriberID-default.json +25 -0
- package/entities/SubscriberManagement/mockdatafiles/retrieveSubscriberByEmailAddress-default.json +27 -0
- package/entities/SubscriberManagement/mockdatafiles/retrieveSubscriberByInternalID-default.json +25 -0
- package/entities/SubscriberManagement/mockdatafiles/retrieveSubscriberByName-default.json +27 -0
- package/entities/SubscriberManagement/mockdatafiles/retrieveSubscribersByPhoneNumber-default.json +27 -0
- package/entities/SubscriberManagement/mockdatafiles/updateSubscriberOrReplaceAssociatedSystem-default.json +25 -0
- package/entities/SubscriberManagement/schema.json +27 -0
- package/entities/TR69DeviceOperations/action.json +24 -0
- package/entities/TR69DeviceOperations/schema.json +19 -0
- package/error.json +190 -0
- package/package.json +85 -0
- package/pronghorn.json +1780 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1248 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/Calix Support Cloud - Subscriber-Device API.postman_collection.json +2696 -0
- package/report/creationReport.json +314 -0
- package/sampleProperties.json +195 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +1336 -0
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +2234 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +178 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +246 -0
- package/utils/tbUtils.js +490 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +195 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_id": "cdfc1c38-5836-4264-94d2-af0be7cf51bd",
|
|
3
|
+
"opMode": "RG",
|
|
4
|
+
"deviceId": "CXNK00001234",
|
|
5
|
+
"subscriberId": "45600aa6-ee09-4c0d-98e3-9569bc908673",
|
|
6
|
+
"data": {
|
|
7
|
+
"Enable": true,
|
|
8
|
+
"pppoe": {
|
|
9
|
+
"Username": "some@user.org",
|
|
10
|
+
"Password": "my-ppp-password"
|
|
11
|
+
},
|
|
12
|
+
"VlanId": 888,
|
|
13
|
+
"Pbit": 0
|
|
14
|
+
},
|
|
15
|
+
"video": {
|
|
16
|
+
"Enable": true,
|
|
17
|
+
"VlanId": 999,
|
|
18
|
+
"Pbit": 4
|
|
19
|
+
},
|
|
20
|
+
"voice": {
|
|
21
|
+
"ServiceType": "SIP",
|
|
22
|
+
"FaxT38": {
|
|
23
|
+
"Enable": false
|
|
24
|
+
},
|
|
25
|
+
"DialPlan": "system-default",
|
|
26
|
+
"Line": {
|
|
27
|
+
"1": {
|
|
28
|
+
"Enable": "Enabled",
|
|
29
|
+
"SIP": {
|
|
30
|
+
"AuthUserName": "9191234567",
|
|
31
|
+
"AuthPassword": "my-sip-password",
|
|
32
|
+
"URI": "9191234567"
|
|
33
|
+
},
|
|
34
|
+
"CallingFeatures": {
|
|
35
|
+
"CallerIDEnable": true,
|
|
36
|
+
"CallWaitingEnable": true,
|
|
37
|
+
"X_000631_ThreewayCallingEnable": true,
|
|
38
|
+
"MWIEnable": true,
|
|
39
|
+
"X_000631_DirectConnectEnable": false,
|
|
40
|
+
"X_000631_DirectConnectNumber": "",
|
|
41
|
+
"X_000631_DirectConnectTimer": 0
|
|
42
|
+
},
|
|
43
|
+
"VoiceProcessing": {
|
|
44
|
+
"ReceiveGain": -90,
|
|
45
|
+
"TransmitGain": -30
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"2": {
|
|
49
|
+
"Enable": "Disabled"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"wifi": {
|
|
54
|
+
"1": {
|
|
55
|
+
"Enable": true,
|
|
56
|
+
"SSID": "Test User Home",
|
|
57
|
+
"SSIDAdvertisementEnabled": true,
|
|
58
|
+
"BeaconType": "WPAand11i",
|
|
59
|
+
"IEEE11iEncryptionModes": "AESEncryption",
|
|
60
|
+
"WPAEncryptionModes": "AESEncryption",
|
|
61
|
+
"KeyPassphrase": "s3crets!!",
|
|
62
|
+
"RadioEnabled": true
|
|
63
|
+
},
|
|
64
|
+
"9": {
|
|
65
|
+
"Enable": true,
|
|
66
|
+
"SSID": "Test User Home",
|
|
67
|
+
"SSIDAdvertisementEnabled": true,
|
|
68
|
+
"BeaconType": "WPAand11i",
|
|
69
|
+
"IEEE11iEncryptionModes": "AESEncryption",
|
|
70
|
+
"WPAEncryptionModes": "AESEncryption",
|
|
71
|
+
"KeyPassphrase": "s3crets!!",
|
|
72
|
+
"RadioEnabled": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"modelName": "844E-1",
|
|
76
|
+
"orgId": "12837558"
|
|
77
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"_id": "cdfc1c38-5836-4264-94d2-af0be7cf51bd",
|
|
4
|
+
"opMode": "RG",
|
|
5
|
+
"deviceId": "CXNK00001234",
|
|
6
|
+
"subscriberId": "45600aa6-ee09-4c0d-98e3-9569bc908673",
|
|
7
|
+
"data": {
|
|
8
|
+
"Enable": true,
|
|
9
|
+
"pppoe": {
|
|
10
|
+
"Username": "some@user.org",
|
|
11
|
+
"Password": "my-ppp-password"
|
|
12
|
+
},
|
|
13
|
+
"VlanId": 888,
|
|
14
|
+
"Pbit": 0
|
|
15
|
+
},
|
|
16
|
+
"video": {
|
|
17
|
+
"Enable": true,
|
|
18
|
+
"VlanId": 999,
|
|
19
|
+
"Pbit": 4
|
|
20
|
+
},
|
|
21
|
+
"voice": {
|
|
22
|
+
"ServiceType": "SIP",
|
|
23
|
+
"FaxT38": {
|
|
24
|
+
"Enable": false
|
|
25
|
+
},
|
|
26
|
+
"DialPlan": "system-default",
|
|
27
|
+
"X_CALIX_SXACC_RG_WAN": {
|
|
28
|
+
"ServiceConnectionType": "DHCP"
|
|
29
|
+
},
|
|
30
|
+
"Line": {
|
|
31
|
+
"1": {
|
|
32
|
+
"Enable": "Enabled",
|
|
33
|
+
"SIP": {
|
|
34
|
+
"AuthUserName": "9191234567",
|
|
35
|
+
"AuthPassword": "my-sip-password",
|
|
36
|
+
"URI": "9191234567"
|
|
37
|
+
},
|
|
38
|
+
"CallingFeatures": {
|
|
39
|
+
"CallerIDEnable": true,
|
|
40
|
+
"CallWaitingEnable": true,
|
|
41
|
+
"X_000631_ThreewayCallingEnable": true,
|
|
42
|
+
"MWIEnable": true,
|
|
43
|
+
"X_000631_DirectConnectEnable": false,
|
|
44
|
+
"X_000631_DirectConnectNumber": "",
|
|
45
|
+
"X_000631_DirectConnectTimer": 0
|
|
46
|
+
},
|
|
47
|
+
"VoiceProcessing": {
|
|
48
|
+
"ReceiveGain": -90,
|
|
49
|
+
"TransmitGain": -30
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"2": {
|
|
53
|
+
"Enable": "Disabled"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"wifi": {
|
|
58
|
+
"1": {
|
|
59
|
+
"Enable": true,
|
|
60
|
+
"SSID": "Test User Home",
|
|
61
|
+
"SSIDAdvertisementEnabled": true,
|
|
62
|
+
"BeaconType": "WPAand11i",
|
|
63
|
+
"IEEE11iEncryptionModes": "AESEncryption",
|
|
64
|
+
"WPAEncryptionModes": "AESEncryption",
|
|
65
|
+
"KeyPassphrase": "s3crets!!",
|
|
66
|
+
"RadioEnabled": true
|
|
67
|
+
},
|
|
68
|
+
"9": {
|
|
69
|
+
"Enable": true,
|
|
70
|
+
"SSID": "Test User Home",
|
|
71
|
+
"SSIDAdvertisementEnabled": true,
|
|
72
|
+
"BeaconType": "WPAand11i",
|
|
73
|
+
"IEEE11iEncryptionModes": "AESEncryption",
|
|
74
|
+
"WPAEncryptionModes": "AESEncryption",
|
|
75
|
+
"KeyPassphrase": "s3crets!!",
|
|
76
|
+
"RadioEnabled": true
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"modelName": "844E-1",
|
|
80
|
+
"orgId": "12837558"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"_id": "cdfc1c38-5836-4264-94d2-af0be7cf51bd",
|
|
4
|
+
"opMode": "RG",
|
|
5
|
+
"deviceId": "CXNK00001234",
|
|
6
|
+
"subscriberId": "45600aa6-ee09-4c0d-98e3-9569bc908673",
|
|
7
|
+
"data": {
|
|
8
|
+
"Enable": true,
|
|
9
|
+
"pppoe": {
|
|
10
|
+
"Username": "some@user.org",
|
|
11
|
+
"Password": "my-ppp-password"
|
|
12
|
+
},
|
|
13
|
+
"VlanId": 888,
|
|
14
|
+
"Pbit": 0
|
|
15
|
+
},
|
|
16
|
+
"video": {
|
|
17
|
+
"Enable": true,
|
|
18
|
+
"VlanId": 999,
|
|
19
|
+
"Pbit": 4
|
|
20
|
+
},
|
|
21
|
+
"voice": {
|
|
22
|
+
"ServiceType": "SIP",
|
|
23
|
+
"FaxT38": {
|
|
24
|
+
"Enable": false
|
|
25
|
+
},
|
|
26
|
+
"DialPlan": "system-default",
|
|
27
|
+
"X_CALIX_SXACC_RG_WAN": {
|
|
28
|
+
"ServiceConnectionType": "DHCP"
|
|
29
|
+
},
|
|
30
|
+
"Line": {
|
|
31
|
+
"1": {
|
|
32
|
+
"Enable": "Enabled",
|
|
33
|
+
"SIP": {
|
|
34
|
+
"AuthUserName": "9191234567",
|
|
35
|
+
"AuthPassword": "my-sip-password",
|
|
36
|
+
"URI": "9191234567"
|
|
37
|
+
},
|
|
38
|
+
"CallingFeatures": {
|
|
39
|
+
"CallerIDEnable": true,
|
|
40
|
+
"CallWaitingEnable": true,
|
|
41
|
+
"X_000631_ThreewayCallingEnable": true,
|
|
42
|
+
"MWIEnable": true,
|
|
43
|
+
"X_000631_DirectConnectEnable": false,
|
|
44
|
+
"X_000631_DirectConnectNumber": "",
|
|
45
|
+
"X_000631_DirectConnectTimer": 0
|
|
46
|
+
},
|
|
47
|
+
"VoiceProcessing": {
|
|
48
|
+
"ReceiveGain": -90,
|
|
49
|
+
"TransmitGain": -30
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"2": {
|
|
53
|
+
"Enable": "Disabled"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"wifi": {
|
|
58
|
+
"1": {
|
|
59
|
+
"Enable": true,
|
|
60
|
+
"SSID": "Test User Home",
|
|
61
|
+
"SSIDAdvertisementEnabled": true,
|
|
62
|
+
"BeaconType": "WPAand11i",
|
|
63
|
+
"IEEE11iEncryptionModes": "AESEncryption",
|
|
64
|
+
"WPAEncryptionModes": "AESEncryption",
|
|
65
|
+
"KeyPassphrase": "s3crets!!",
|
|
66
|
+
"RadioEnabled": true
|
|
67
|
+
},
|
|
68
|
+
"9": {
|
|
69
|
+
"Enable": true,
|
|
70
|
+
"SSID": "Test User Home",
|
|
71
|
+
"SSIDAdvertisementEnabled": true,
|
|
72
|
+
"BeaconType": "WPAand11i",
|
|
73
|
+
"IEEE11iEncryptionModes": "AESEncryption",
|
|
74
|
+
"WPAEncryptionModes": "AESEncryption",
|
|
75
|
+
"KeyPassphrase": "s3crets!!",
|
|
76
|
+
"RadioEnabled": true
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"modelName": "844E-1",
|
|
80
|
+
"orgId": "12837558"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "createProvisioningRecord",
|
|
12
|
+
"enum": [
|
|
13
|
+
"createProvisioningRecord",
|
|
14
|
+
"retrieveAllProvisioningRecords",
|
|
15
|
+
"retrieveProvisioningRecordByInternalID",
|
|
16
|
+
"deleteProvisioningRecord",
|
|
17
|
+
"retrieveProvisioningRecordsByDevice",
|
|
18
|
+
"retrieveProvisioningRecordsBySubscriber",
|
|
19
|
+
"modifyProvisioningRecord"
|
|
20
|
+
],
|
|
21
|
+
"external_name": "ph_request_type"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"definitions": {}
|
|
25
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "createSubscriber",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/subscriber?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "",
|
|
13
|
+
"responseDatatype": "",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "retrieveAllSubscribers",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/subscriber?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "",
|
|
34
|
+
"responseDatatype": "",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": "mockdatafiles/retrieveAllSubscribers-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "retrieveSubscriberByInternalID",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/subscriber/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "",
|
|
55
|
+
"responseDatatype": "",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": "mockdatafiles/retrieveSubscriberByInternalID-default.json"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "deleteSubscriber",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "DELETE",
|
|
69
|
+
"entitypath": "{base_path}/{version}/subscriber/{pathv1}?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"requestDatatype": "",
|
|
75
|
+
"responseDatatype": "",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "retrieveSubscriberByCustomIdSubscriberID",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "GET",
|
|
89
|
+
"entitypath": "{base_path}/{version}/subscriber/?{query}",
|
|
90
|
+
"requestSchema": "schema.json",
|
|
91
|
+
"responseSchema": "schema.json",
|
|
92
|
+
"timeout": 0,
|
|
93
|
+
"sendEmpty": false,
|
|
94
|
+
"sendGetBody": false,
|
|
95
|
+
"requestDatatype": "",
|
|
96
|
+
"responseDatatype": "",
|
|
97
|
+
"headers": {},
|
|
98
|
+
"responseObjects": [
|
|
99
|
+
{
|
|
100
|
+
"type": "default",
|
|
101
|
+
"key": "",
|
|
102
|
+
"mockFile": "mockdatafiles/retrieveSubscriberByCustomIdSubscriberID-default.json"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "retrieveSubscriberByName",
|
|
108
|
+
"protocol": "REST",
|
|
109
|
+
"method": "GET",
|
|
110
|
+
"entitypath": "{base_path}/{version}/subscriber/?{query}",
|
|
111
|
+
"requestSchema": "schema.json",
|
|
112
|
+
"responseSchema": "schema.json",
|
|
113
|
+
"timeout": 0,
|
|
114
|
+
"sendEmpty": false,
|
|
115
|
+
"sendGetBody": false,
|
|
116
|
+
"requestDatatype": "",
|
|
117
|
+
"responseDatatype": "",
|
|
118
|
+
"headers": {},
|
|
119
|
+
"responseObjects": [
|
|
120
|
+
{
|
|
121
|
+
"type": "default",
|
|
122
|
+
"key": "",
|
|
123
|
+
"mockFile": "mockdatafiles/retrieveSubscriberByName-default.json"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "retrieveSubscribersByPhoneNumber",
|
|
129
|
+
"protocol": "REST",
|
|
130
|
+
"method": "GET",
|
|
131
|
+
"entitypath": "{base_path}/{version}/subscriber/?{query}",
|
|
132
|
+
"requestSchema": "schema.json",
|
|
133
|
+
"responseSchema": "schema.json",
|
|
134
|
+
"timeout": 0,
|
|
135
|
+
"sendEmpty": false,
|
|
136
|
+
"sendGetBody": false,
|
|
137
|
+
"requestDatatype": "",
|
|
138
|
+
"responseDatatype": "",
|
|
139
|
+
"headers": {},
|
|
140
|
+
"responseObjects": [
|
|
141
|
+
{
|
|
142
|
+
"type": "default",
|
|
143
|
+
"key": "",
|
|
144
|
+
"mockFile": "mockdatafiles/retrieveSubscribersByPhoneNumber-default.json"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "retrieveSubscriberByEmailAddress",
|
|
150
|
+
"protocol": "REST",
|
|
151
|
+
"method": "GET",
|
|
152
|
+
"entitypath": "{base_path}/{version}/subscriber/?{query}",
|
|
153
|
+
"requestSchema": "schema.json",
|
|
154
|
+
"responseSchema": "schema.json",
|
|
155
|
+
"timeout": 0,
|
|
156
|
+
"sendEmpty": false,
|
|
157
|
+
"sendGetBody": false,
|
|
158
|
+
"requestDatatype": "",
|
|
159
|
+
"responseDatatype": "",
|
|
160
|
+
"headers": {},
|
|
161
|
+
"responseObjects": [
|
|
162
|
+
{
|
|
163
|
+
"type": "default",
|
|
164
|
+
"key": "",
|
|
165
|
+
"mockFile": "mockdatafiles/retrieveSubscriberByEmailAddress-default.json"
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "updateSubscriberOrReplaceAssociatedSystem",
|
|
171
|
+
"protocol": "REST",
|
|
172
|
+
"method": "PUT",
|
|
173
|
+
"entitypath": "{base_path}/{version}/subscriber/?{query}",
|
|
174
|
+
"requestSchema": "schema.json",
|
|
175
|
+
"responseSchema": "schema.json",
|
|
176
|
+
"timeout": 0,
|
|
177
|
+
"sendEmpty": false,
|
|
178
|
+
"requestDatatype": "",
|
|
179
|
+
"responseDatatype": "",
|
|
180
|
+
"headers": {},
|
|
181
|
+
"responseObjects": [
|
|
182
|
+
{
|
|
183
|
+
"type": "default",
|
|
184
|
+
"key": "",
|
|
185
|
+
"mockFile": "mockdatafiles/updateSubscriberOrReplaceAssociatedSystem-default.json"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"_id": "7317b27e-528f-4c40-83bc-6d8a46edd0a3",
|
|
4
|
+
"customId": "67890",
|
|
5
|
+
"name": "Test user",
|
|
6
|
+
"locations": [
|
|
7
|
+
{
|
|
8
|
+
"address": {
|
|
9
|
+
"streetLine1": "123 Oak St",
|
|
10
|
+
"city": "Anytown",
|
|
11
|
+
"state": "ZZ",
|
|
12
|
+
"zip": "00000",
|
|
13
|
+
"country": "USA"
|
|
14
|
+
},
|
|
15
|
+
"contacts": [
|
|
16
|
+
{
|
|
17
|
+
"phone": "919-123-4567",
|
|
18
|
+
"email": "some@user.org"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"devices": [
|
|
22
|
+
"CXNK00001234"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_id": "7317b27e-528f-4c40-83bc-6d8a46edd0a3",
|
|
3
|
+
"customId": "67890",
|
|
4
|
+
"name": "Test user",
|
|
5
|
+
"locations": [
|
|
6
|
+
{
|
|
7
|
+
"address": {
|
|
8
|
+
"streetLine1": "123 Oak St",
|
|
9
|
+
"city": "Anytown",
|
|
10
|
+
"state": "ZZ",
|
|
11
|
+
"zip": "00000",
|
|
12
|
+
"country": "USA"
|
|
13
|
+
},
|
|
14
|
+
"contacts": [
|
|
15
|
+
{
|
|
16
|
+
"phone": "919-123-4567",
|
|
17
|
+
"email": "some@user.org"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"devices": [
|
|
21
|
+
"CXNK00001234"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
package/entities/SubscriberManagement/mockdatafiles/retrieveSubscriberByEmailAddress-default.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"_id": "7317b27e-528f-4c40-83bc-6d8a46edd0a3",
|
|
4
|
+
"customId": "67890",
|
|
5
|
+
"name": "Test user",
|
|
6
|
+
"locations": [
|
|
7
|
+
{
|
|
8
|
+
"address": {
|
|
9
|
+
"streetLine1": "123 Oak St",
|
|
10
|
+
"city": "Anytown",
|
|
11
|
+
"state": "ZZ",
|
|
12
|
+
"zip": "00000",
|
|
13
|
+
"country": "USA"
|
|
14
|
+
},
|
|
15
|
+
"contacts": [
|
|
16
|
+
{
|
|
17
|
+
"phone": "919-123-4567",
|
|
18
|
+
"email": "some@user.org"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"devices": [
|
|
22
|
+
"CXNK00001234"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
package/entities/SubscriberManagement/mockdatafiles/retrieveSubscriberByInternalID-default.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_id": "7317b27e-528f-4c40-83bc-6d8a46edd0a3",
|
|
3
|
+
"customId": "67890",
|
|
4
|
+
"name": "Test user",
|
|
5
|
+
"locations": [
|
|
6
|
+
{
|
|
7
|
+
"address": {
|
|
8
|
+
"streetLine1": "123 Oak St",
|
|
9
|
+
"city": "Anytown",
|
|
10
|
+
"state": "ZZ",
|
|
11
|
+
"zip": "00000",
|
|
12
|
+
"country": "USA"
|
|
13
|
+
},
|
|
14
|
+
"contacts": [
|
|
15
|
+
{
|
|
16
|
+
"phone": "919-123-4567",
|
|
17
|
+
"email": "some@user.org"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"devices": [
|
|
21
|
+
"CXNK00001234"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"_id": "7317b27e-528f-4c40-83bc-6d8a46edd0a3",
|
|
4
|
+
"customId": "67890",
|
|
5
|
+
"name": "Test user",
|
|
6
|
+
"locations": [
|
|
7
|
+
{
|
|
8
|
+
"address": {
|
|
9
|
+
"streetLine1": "123 Oak St",
|
|
10
|
+
"city": "Anytown",
|
|
11
|
+
"state": "ZZ",
|
|
12
|
+
"zip": "00000",
|
|
13
|
+
"country": "USA"
|
|
14
|
+
},
|
|
15
|
+
"contacts": [
|
|
16
|
+
{
|
|
17
|
+
"phone": "919-123-4567",
|
|
18
|
+
"email": "some@user.org"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"devices": [
|
|
22
|
+
"CXNK00001234"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
package/entities/SubscriberManagement/mockdatafiles/retrieveSubscribersByPhoneNumber-default.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"_id": "7317b27e-528f-4c40-83bc-6d8a46edd0a3",
|
|
4
|
+
"customId": "67890",
|
|
5
|
+
"name": "Test user",
|
|
6
|
+
"locations": [
|
|
7
|
+
{
|
|
8
|
+
"address": {
|
|
9
|
+
"streetLine1": "123 Oak St",
|
|
10
|
+
"city": "Anytown",
|
|
11
|
+
"state": "ZZ",
|
|
12
|
+
"zip": "00000",
|
|
13
|
+
"country": "USA"
|
|
14
|
+
},
|
|
15
|
+
"contacts": [
|
|
16
|
+
{
|
|
17
|
+
"phone": "919-123-4567",
|
|
18
|
+
"email": "some@user.org"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"devices": [
|
|
22
|
+
"CXNK00001234"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_id": "7317b27e-528f-4c40-83bc-6d8a46edd0a3",
|
|
3
|
+
"customId": "67890",
|
|
4
|
+
"name": "Test user",
|
|
5
|
+
"locations": [
|
|
6
|
+
{
|
|
7
|
+
"address": {
|
|
8
|
+
"streetLine1": "123 Oak St",
|
|
9
|
+
"city": "Anytown",
|
|
10
|
+
"state": "ZZ",
|
|
11
|
+
"zip": "00000",
|
|
12
|
+
"country": "USA"
|
|
13
|
+
},
|
|
14
|
+
"contacts": [
|
|
15
|
+
{
|
|
16
|
+
"phone": "919-123-4567",
|
|
17
|
+
"email": "some@user.org"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"devices": [
|
|
21
|
+
"CXNK00001234"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "createSubscriber",
|
|
12
|
+
"enum": [
|
|
13
|
+
"createSubscriber",
|
|
14
|
+
"retrieveAllSubscribers",
|
|
15
|
+
"retrieveSubscriberByInternalID",
|
|
16
|
+
"deleteSubscriber",
|
|
17
|
+
"retrieveSubscriberByCustomIdSubscriberID",
|
|
18
|
+
"retrieveSubscriberByName",
|
|
19
|
+
"retrieveSubscribersByPhoneNumber",
|
|
20
|
+
"retrieveSubscriberByEmailAddress",
|
|
21
|
+
"updateSubscriberOrReplaceAssociatedSystem"
|
|
22
|
+
],
|
|
23
|
+
"external_name": "ph_request_type"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"definitions": {}
|
|
27
|
+
}
|