traitify-widgets 3.5.7 → 3.6.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 +3 -0
- package/build/complete_external.sh +9 -0
- package/build/create_order.sh +16 -0
- package/build/get_external_id.sh +9 -0
- package/build/scripts/i18n-sync.js +1 -0
- package/build/traitify.js +1 -1
- package/build/traitify.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,8 @@ Depending on the use-case, different IDs are required to use the widgets.
|
|
|
10
10
|
|
|
11
11
|
- Single assessment
|
|
12
12
|
- assessmentID
|
|
13
|
+
- Assessment(s) associated with an order
|
|
14
|
+
- orderID
|
|
13
15
|
- Assessment(s) associated with a recommendation
|
|
14
16
|
- benchmarkID or packageID
|
|
15
17
|
- profileID
|
|
@@ -121,6 +123,7 @@ Traitify.render({
|
|
|
121
123
|
- host
|
|
122
124
|
- locale
|
|
123
125
|
- options
|
|
126
|
+
- orderID
|
|
124
127
|
- packageID
|
|
125
128
|
- profileID
|
|
126
129
|
- version
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
api_key="3a9168a6db571a23ee5c10cea9"
|
|
4
|
+
|
|
5
|
+
curl 'https://api.stag.awse.traitify.com/beta/assessments/admin/graphql' \
|
|
6
|
+
-H 'content-type: application/json' \
|
|
7
|
+
--user "$api_key:x" \
|
|
8
|
+
-d '{"query":"mutation{\n completeAssessment(externalId: \"59cd2be5-14e8-4ba3-8569-2bf3b3382419\", score: 10.0) {\n numericResult\n }\n}"}' \
|
|
9
|
+
--verbose | jq
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
random_email="user_$(openssl rand -hex 7)@test.com"
|
|
4
|
+
# random_email="user_095abd5c1284ba@test.com"
|
|
5
|
+
random_application_id="app_$(openssl rand -hex 12)"
|
|
6
|
+
random_candidate_id="cand_$(openssl rand -hex 12)"
|
|
7
|
+
random_redirect_url="https://redirecturl.com/$(openssl rand -hex 8)"
|
|
8
|
+
locale_key="en-US"
|
|
9
|
+
org_auth="3a9168a6db571a23ee5c10cea9"
|
|
10
|
+
# standlone assessment traitify
|
|
11
|
+
package_id="0fe0617b-be9f-494f-a820-669c478d1b0d"
|
|
12
|
+
curl -X POST https://app.stag.traitify.com/api/dash/assessments/orders \
|
|
13
|
+
-d "{\"package\": \"$package_id\", \"workflow\": \"email\", \"assessment_taker\": {\"email\": \"$random_email\", \"candidate_id\": \"$random_candidate_id\", \"application_id\": \"$random_application_id\", \"locale_key\": \"$locale_key\"}, \"redirect_url\": \"$random_redirect_url\"}" \
|
|
14
|
+
-u "x:$org_auth" \
|
|
15
|
+
-H "Content-Type: application/json" \
|
|
16
|
+
--verbose | jq
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
api_key="3a9168a6db571a23ee5c10cea9"
|
|
4
|
+
|
|
5
|
+
curl 'https://api.stag.awse.traitify.com/beta/assessments/external/external_assessments/graphql' \
|
|
6
|
+
-H 'content-type: application/json' \
|
|
7
|
+
--user "$api_key:x" \
|
|
8
|
+
-d '{"query":"query {getAssessment(id: \"a194b9a8-a8ad-498d-8f9d-9f1709c649d3\") {externalId}}"}' \
|
|
9
|
+
--verbose | jq
|