traitify-widgets 3.5.7 → 3.6.0-alpha.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 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: \"1426fa9f-deb9-4514-b7bd-ae86f92b4bc1\", 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="d85c105a-0d35-46f9-95bc-f7973cab97a7"
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