Skip to content

Commit

Permalink
test: Add snapshots for xp integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonSiler committed Nov 19, 2024
1 parent dedd343 commit 3274924
Show file tree
Hide file tree
Showing 2 changed files with 279 additions and 0 deletions.
274 changes: 274 additions & 0 deletions src/aux-records/__snapshots__/RecordsServer.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1940,6 +1940,143 @@ Object {
"name": "getNotificationsApplicationServerKey",
"origins": "api",
},
Object {
"http": Object {
"method": "GET",
"path": "/api/v2/xp/user",
},
"inputs": Object {
"schema": Object {
"userId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
"xpId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
},
"type": "object",
},
"name": "getXpUserMeta",
"origins": "api",
},
Object {
"http": Object {
"method": "POST",
"path": "/api/v2/xp/contract",
},
"inputs": Object {
"schema": Object {
"contract": Object {
"schema": Object {
"accountCurrency": Object {
"optional": true,
"type": "string",
},
"contractedUserId": Object {
"nullable": true,
"optional": true,
"schema": Object {
"userId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
"xpId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
},
"type": "object",
},
"description": Object {
"optional": true,
"type": "string",
},
"gigRate": Object {
"type": "number",
},
"gigs": Object {
"type": "number",
},
"status": Object {
"options": Array [
Object {
"type": "literal",
"value": "open",
},
Object {
"type": "literal",
"value": "draft",
},
],
"type": "union",
},
},
"type": "object",
},
},
"type": "object",
},
"name": "createXpContract",
"origins": "api",
},
Object {
"http": Object {
"method": "PUT",
"path": "/api/v2/xp/contract",
},
"inputs": Object {
"schema": Object {
"contractId": Object {
"type": "string",
},
"newDescription": Object {
"optional": true,
"type": "string",
},
"newStatus": Object {
"options": Array [
Object {
"type": "literal",
"value": "open",
},
Object {
"type": "literal",
"value": "draft",
},
Object {
"type": "literal",
"value": "closed",
},
],
"type": "union",
},
"receivingUserId": Object {
"schema": Object {
"userId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
"xpId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
},
"type": "object",
},
},
"type": "object",
},
"name": "updateXpContract",
"origins": "api",
},
Object {
"http": Object {
"method": "GET",
Expand Down Expand Up @@ -5784,6 +5921,143 @@ Object {
"name": "getNotificationsApplicationServerKey",
"origins": "api",
},
Object {
"http": Object {
"method": "GET",
"path": "/api/v2/xp/user",
},
"inputs": Object {
"schema": Object {
"userId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
"xpId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
},
"type": "object",
},
"name": "getXpUserMeta",
"origins": "api",
},
Object {
"http": Object {
"method": "POST",
"path": "/api/v2/xp/contract",
},
"inputs": Object {
"schema": Object {
"contract": Object {
"schema": Object {
"accountCurrency": Object {
"optional": true,
"type": "string",
},
"contractedUserId": Object {
"nullable": true,
"optional": true,
"schema": Object {
"userId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
"xpId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
},
"type": "object",
},
"description": Object {
"optional": true,
"type": "string",
},
"gigRate": Object {
"type": "number",
},
"gigs": Object {
"type": "number",
},
"status": Object {
"options": Array [
Object {
"type": "literal",
"value": "open",
},
Object {
"type": "literal",
"value": "draft",
},
],
"type": "union",
},
},
"type": "object",
},
},
"type": "object",
},
"name": "createXpContract",
"origins": "api",
},
Object {
"http": Object {
"method": "PUT",
"path": "/api/v2/xp/contract",
},
"inputs": Object {
"schema": Object {
"contractId": Object {
"type": "string",
},
"newDescription": Object {
"optional": true,
"type": "string",
},
"newStatus": Object {
"options": Array [
Object {
"type": "literal",
"value": "open",
},
Object {
"type": "literal",
"value": "draft",
},
Object {
"type": "literal",
"value": "closed",
},
],
"type": "union",
},
"receivingUserId": Object {
"schema": Object {
"userId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
"xpId": Object {
"nullable": true,
"optional": true,
"type": "string",
},
},
"type": "object",
},
},
"type": "object",
},
"name": "updateXpContract",
"origins": "api",
},
Object {
"http": Object {
"method": "GET",
Expand Down
5 changes: 5 additions & 0 deletions src/aux-runtime/runtime/__snapshots__/AuxRuntime.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Array [
"crypto",
"perf",
"web",
"xp",
"analytics",
"create",
"setTimeout",
Expand Down Expand Up @@ -203,6 +204,7 @@ Array [
"crypto",
"perf",
"web",
"xp",
"analytics",
"create",
"setTimeout",
Expand Down Expand Up @@ -384,6 +386,7 @@ Array [
"crypto",
"perf",
"web",
"xp",
"analytics",
"tagName",
"___importMeta",
Expand Down Expand Up @@ -488,6 +491,7 @@ Array [
"crypto",
"perf",
"web",
"xp",
"analytics",
"create",
"setTimeout",
Expand Down Expand Up @@ -594,6 +598,7 @@ Array [
"crypto",
"perf",
"web",
"xp",
"analytics",
"create",
"setTimeout",
Expand Down

0 comments on commit 3274924

Please sign in to comment.