@accounter/green-invoice-graphql 0.8.3-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991 → 0.8.3-alpha-20251209134546-ceea0fd621c6fbe94cbcc52356f259f4f9bd5462

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.
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.deleteClient_mutationDocument = exports.updateClient_mutationDocument = exports.addClient_mutationDocument = exports.addExpenseDraftByFile_mutationDocument = exports.updateExpense_mutationDocument = exports.addExpense_mutationDocument = exports.closeDocument_mutationDocument = exports.addDocument_mutationDocument = exports.getBankTransactions_queryDocument = exports.getFileUploadUrl_queryDocument = exports.getClient_queryDocument = exports.searchExpenseDrafts_queryDocument = exports.searchExpenses_queryDocument = exports.getExpense_queryDocument = exports.getLinkedDocuments_queryDocument = exports.previewDocument_queryDocument = exports.searchDocuments_queryDocument = exports.getDocument_queryDocument = exports.subscribe = exports.execute = exports.pollingInterval = exports.rawServeConfig = void 0;
36
+ exports.deleteClient_mutationDocument = exports.updateClient_mutationDocument = exports.addClient_mutationDocument = exports.addExpenseDraftByFile_mutationDocument = exports.updateExpense_mutationDocument = exports.addExpense_mutationDocument = exports.closeDocument_mutationDocument = exports.addDocument_mutationDocument = exports.getBankTransactions_queryDocument = exports.getFileUploadUrl_queryDocument = exports.getClient_queryDocument = exports.searchExpenseDrafts_queryDocument = exports.searchExpenses_queryDocument = exports.getExpense_queryDocument = exports.getDocumentsDownloadLinks_queryDocument = exports.getLinkedDocuments_queryDocument = exports.previewDocument_queryDocument = exports.searchDocuments_queryDocument = exports.getDocument_queryDocument = exports.subscribe = exports.execute = exports.pollingInterval = exports.rawServeConfig = void 0;
37
37
  exports.getMeshOptions = getMeshOptions;
38
38
  exports.createBuiltMeshHTTPHandler = createBuiltMeshHTTPHandler;
39
39
  exports.getBuiltMesh = getBuiltMesh;
@@ -90,7 +90,7 @@ async function getMeshOptions() {
90
90
  const GreenInvoiceHandler = await Promise.resolve().then(() => __importStar(require("@graphql-mesh/json-schema"))).then(utils_2.handleImport);
91
91
  const greenInvoiceHandler = new GreenInvoiceHandler({
92
92
  name: "GreenInvoice",
93
- config: { "endpoint": "https://api.greeninvoice.co.il/api/v1", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "Query", "field": "getDocument", "path": "/documents/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getDocumentResponse" }, { "type": "Query", "field": "searchDocuments", "path": "/documents/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsResponse" }, { "type": "Query", "field": "previewDocument", "path": "/documents/preview", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentResponse" }, { "type": "Query", "field": "getLinkedDocuments", "path": "/documents/{args.id}/linked", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getLinkedDocumentsResponse" }, { "type": "Mutation", "field": "addDocument", "path": "/documents", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentResponse" }, { "type": "Mutation", "field": "closeDocument", "path": "/documents/{args.id}/close", "method": "POST", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/closeDocumentResponse" } } }, { "type": "Query", "field": "getExpense", "path": "/expenses/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getExpenseResponse" }, { "type": "Query", "field": "searchExpenses", "path": "/expenses/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesResponse" }, { "type": "Mutation", "field": "addExpense", "path": "/expenses", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseResponse" }, { "type": "Mutation", "field": "updateExpense", "path": "/expenses/{args.id}", "method": "PUT", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseResponse" }, { "type": "Query", "field": "searchExpenseDrafts", "path": "/expenses/drafts/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Mutation", "field": "addExpenseDraftByFile", "path": "/expenses/file", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "400": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "405": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Query", "field": "getClient", "path": "/clients/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getClientResponse" }, { "type": "Mutation", "field": "addClient", "path": "/clients", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addClientResponse" }, { "type": "Mutation", "field": "updateClient", "path": "/clients/{args.id}", "method": "PUT", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientResponse" }, { "type": "Mutation", "field": "deleteClient", "path": "/clients/{args.id}", "method": "DELETE", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/deleteClientResponse" }] },
93
+ config: { "endpoint": "https://api.greeninvoice.co.il/api/v1", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "Query", "field": "getDocument", "path": "/documents/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getDocumentResponse" }, { "type": "Query", "field": "searchDocuments", "path": "/documents/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsResponse" }, { "type": "Query", "field": "previewDocument", "path": "/documents/preview", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentResponse" }, { "type": "Query", "field": "getLinkedDocuments", "path": "/documents/{args.id}/linked", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getLinkedDocumentsResponse" }, { "type": "Query", "field": "getDocumentsDownloadLinks", "path": "/documents/{args.id}/download/links", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getDocumentsDownloadLinksResponse" }, { "type": "Mutation", "field": "addDocument", "path": "/documents", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentResponse" }, { "type": "Mutation", "field": "closeDocument", "path": "/documents/{args.id}/close", "method": "POST", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/closeDocumentResponse" } } }, { "type": "Query", "field": "getExpense", "path": "/expenses/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getExpenseResponse" }, { "type": "Query", "field": "searchExpenses", "path": "/expenses/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesResponse" }, { "type": "Mutation", "field": "addExpense", "path": "/expenses", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseResponse" }, { "type": "Mutation", "field": "updateExpense", "path": "/expenses/{args.id}", "method": "PUT", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseResponse" }, { "type": "Query", "field": "searchExpenseDrafts", "path": "/expenses/drafts/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Mutation", "field": "addExpenseDraftByFile", "path": "/expenses/file", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "400": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "405": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Query", "field": "getClient", "path": "/clients/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getClientResponse" }, { "type": "Mutation", "field": "addClient", "path": "/clients", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addClientResponse" }, { "type": "Mutation", "field": "updateClient", "path": "/clients/{args.id}", "method": "PUT", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientResponse" }, { "type": "Mutation", "field": "deleteClient", "path": "/clients/{args.id}", "method": "DELETE", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/deleteClientResponse" }] },
94
94
  baseDir,
95
95
  cache,
96
96
  pubsub,
@@ -485,6 +485,15 @@ exports.getLinkedDocuments_queryDocument = (0, utils_1.gql) `
485
485
  }
486
486
  }
487
487
  `;
488
+ exports.getDocumentsDownloadLinks_queryDocument = (0, utils_1.gql) `
489
+ query getDocumentsDownloadLinks_query($id: String!) {
490
+ getDocumentsDownloadLinks(id: $id) {
491
+ he
492
+ en
493
+ origin
494
+ }
495
+ }
496
+ `;
488
497
  exports.getExpense_queryDocument = (0, utils_1.gql) `
489
498
  query getExpense_query($id: String!) {
490
499
  getExpense(id: $id) {
@@ -1222,6 +1231,9 @@ function getSdk(requester) {
1222
1231
  getLinkedDocuments_query(variables, options) {
1223
1232
  return requester(exports.getLinkedDocuments_queryDocument, variables, options);
1224
1233
  },
1234
+ getDocumentsDownloadLinks_query(variables, options) {
1235
+ return requester(exports.getDocumentsDownloadLinks_queryDocument, variables, options);
1236
+ },
1225
1237
  getExpense_query(variables, options) {
1226
1238
  return requester(exports.getExpense_queryDocument, variables, options);
1227
1239
  },
@@ -24,6 +24,7 @@ type Query {
24
24
  searchDocuments(input: _DOLLAR_defs_searchDocumentsRequest_Input): _DOLLAR_defs_searchDocumentsResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/search", httpMethod: POST)
25
25
  previewDocument(input: _DOLLAR_defs_DocumentInputNew_Input): _DOLLAR_defs_previewDocumentResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/preview", httpMethod: POST)
26
26
  getLinkedDocuments(id: String!): _DOLLAR_defs_GetLinkedDocuments @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/linked", httpMethod: GET)
27
+ getDocumentsDownloadLinks(id: String!): _DOLLAR_defs_Url @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/download/links", httpMethod: GET)
27
28
  getExpense(id: String!): _DOLLAR_defs_GetExpense @httpOperation(subgraph: "GreenInvoice", path: "/expenses/{args.id}", httpMethod: GET)
28
29
  searchExpenses(input: _DOLLAR_defs_searchExpensesRequest_Input): _DOLLAR_defs_searchExpensesResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses/search", httpMethod: POST)
29
30
  searchExpenseDrafts(input: _DOLLAR_defs_searchExpenseDraftsRequest_Input): searchExpenseDrafts_response @httpOperation(subgraph: "GreenInvoice", path: "/expenses/drafts/search", httpMethod: POST)
@@ -20,6 +20,7 @@ type Query {
20
20
  searchDocuments(input: _DOLLAR_defs_searchDocumentsRequest_Input): _DOLLAR_defs_searchDocumentsResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/search", httpMethod: POST)
21
21
  previewDocument(input: _DOLLAR_defs_DocumentInputNew_Input): _DOLLAR_defs_previewDocumentResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/preview", httpMethod: POST)
22
22
  getLinkedDocuments(id: String!): _DOLLAR_defs_GetLinkedDocuments @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/linked", httpMethod: GET)
23
+ getDocumentsDownloadLinks(id: String!): _DOLLAR_defs_Url @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/download/links", httpMethod: GET)
23
24
  getExpense(id: String!): _DOLLAR_defs_GetExpense @httpOperation(subgraph: "GreenInvoice", path: "/expenses/{args.id}", httpMethod: GET)
24
25
  searchExpenses(input: _DOLLAR_defs_searchExpensesRequest_Input): _DOLLAR_defs_searchExpensesResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses/search", httpMethod: POST)
25
26
  searchExpenseDrafts(input: _DOLLAR_defs_searchExpenseDraftsRequest_Input): searchExpenseDrafts_response @httpOperation(subgraph: "GreenInvoice", path: "/expenses/drafts/search", httpMethod: POST)
@@ -917,6 +917,84 @@ const schemaAST = {
917
917
  }
918
918
  ]
919
919
  },
920
+ {
921
+ "kind": "FieldDefinition",
922
+ "name": {
923
+ "kind": "Name",
924
+ "value": "getDocumentsDownloadLinks"
925
+ },
926
+ "arguments": [
927
+ {
928
+ "kind": "InputValueDefinition",
929
+ "name": {
930
+ "kind": "Name",
931
+ "value": "id"
932
+ },
933
+ "type": {
934
+ "kind": "NonNullType",
935
+ "type": {
936
+ "kind": "NamedType",
937
+ "name": {
938
+ "kind": "Name",
939
+ "value": "String"
940
+ }
941
+ }
942
+ },
943
+ "directives": []
944
+ }
945
+ ],
946
+ "type": {
947
+ "kind": "NamedType",
948
+ "name": {
949
+ "kind": "Name",
950
+ "value": "_DOLLAR_defs_Url"
951
+ }
952
+ },
953
+ "directives": [
954
+ {
955
+ "kind": "Directive",
956
+ "name": {
957
+ "kind": "Name",
958
+ "value": "httpOperation"
959
+ },
960
+ "arguments": [
961
+ {
962
+ "kind": "Argument",
963
+ "name": {
964
+ "kind": "Name",
965
+ "value": "subgraph"
966
+ },
967
+ "value": {
968
+ "kind": "StringValue",
969
+ "value": "GreenInvoice"
970
+ }
971
+ },
972
+ {
973
+ "kind": "Argument",
974
+ "name": {
975
+ "kind": "Name",
976
+ "value": "path"
977
+ },
978
+ "value": {
979
+ "kind": "StringValue",
980
+ "value": "/documents/{args.id}/download/links"
981
+ }
982
+ },
983
+ {
984
+ "kind": "Argument",
985
+ "name": {
986
+ "kind": "Name",
987
+ "value": "httpMethod"
988
+ },
989
+ "value": {
990
+ "kind": "EnumValue",
991
+ "value": "GET"
992
+ }
993
+ }
994
+ ]
995
+ }
996
+ ]
997
+ },
920
998
  {
921
999
  "kind": "FieldDefinition",
922
1000
  "name": {
@@ -49,7 +49,7 @@ export async function getMeshOptions() {
49
49
  const GreenInvoiceHandler = await import("@graphql-mesh/json-schema").then(handleImport);
50
50
  const greenInvoiceHandler = new GreenInvoiceHandler({
51
51
  name: "GreenInvoice",
52
- config: { "endpoint": "https://api.greeninvoice.co.il/api/v1", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "Query", "field": "getDocument", "path": "/documents/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getDocumentResponse" }, { "type": "Query", "field": "searchDocuments", "path": "/documents/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsResponse" }, { "type": "Query", "field": "previewDocument", "path": "/documents/preview", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentResponse" }, { "type": "Query", "field": "getLinkedDocuments", "path": "/documents/{args.id}/linked", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getLinkedDocumentsResponse" }, { "type": "Mutation", "field": "addDocument", "path": "/documents", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentResponse" }, { "type": "Mutation", "field": "closeDocument", "path": "/documents/{args.id}/close", "method": "POST", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/closeDocumentResponse" } } }, { "type": "Query", "field": "getExpense", "path": "/expenses/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getExpenseResponse" }, { "type": "Query", "field": "searchExpenses", "path": "/expenses/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesResponse" }, { "type": "Mutation", "field": "addExpense", "path": "/expenses", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseResponse" }, { "type": "Mutation", "field": "updateExpense", "path": "/expenses/{args.id}", "method": "PUT", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseResponse" }, { "type": "Query", "field": "searchExpenseDrafts", "path": "/expenses/drafts/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Mutation", "field": "addExpenseDraftByFile", "path": "/expenses/file", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "400": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "405": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Query", "field": "getClient", "path": "/clients/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getClientResponse" }, { "type": "Mutation", "field": "addClient", "path": "/clients", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addClientResponse" }, { "type": "Mutation", "field": "updateClient", "path": "/clients/{args.id}", "method": "PUT", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientResponse" }, { "type": "Mutation", "field": "deleteClient", "path": "/clients/{args.id}", "method": "DELETE", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/deleteClientResponse" }] },
52
+ config: { "endpoint": "https://api.greeninvoice.co.il/api/v1", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "Query", "field": "getDocument", "path": "/documents/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getDocumentResponse" }, { "type": "Query", "field": "searchDocuments", "path": "/documents/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsResponse" }, { "type": "Query", "field": "previewDocument", "path": "/documents/preview", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentResponse" }, { "type": "Query", "field": "getLinkedDocuments", "path": "/documents/{args.id}/linked", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getLinkedDocumentsResponse" }, { "type": "Query", "field": "getDocumentsDownloadLinks", "path": "/documents/{args.id}/download/links", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getDocumentsDownloadLinksResponse" }, { "type": "Mutation", "field": "addDocument", "path": "/documents", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentResponse" }, { "type": "Mutation", "field": "closeDocument", "path": "/documents/{args.id}/close", "method": "POST", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/closeDocumentResponse" } } }, { "type": "Query", "field": "getExpense", "path": "/expenses/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getExpenseResponse" }, { "type": "Query", "field": "searchExpenses", "path": "/expenses/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesResponse" }, { "type": "Mutation", "field": "addExpense", "path": "/expenses", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseResponse" }, { "type": "Mutation", "field": "updateExpense", "path": "/expenses/{args.id}", "method": "PUT", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseResponse" }, { "type": "Query", "field": "searchExpenseDrafts", "path": "/expenses/drafts/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Mutation", "field": "addExpenseDraftByFile", "path": "/expenses/file", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "400": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "405": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Query", "field": "getClient", "path": "/clients/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getClientResponse" }, { "type": "Mutation", "field": "addClient", "path": "/clients", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addClientResponse" }, { "type": "Mutation", "field": "updateClient", "path": "/clients/{args.id}", "method": "PUT", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientResponse" }, { "type": "Mutation", "field": "deleteClient", "path": "/clients/{args.id}", "method": "DELETE", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/deleteClientResponse" }] },
53
53
  baseDir,
54
54
  cache,
55
55
  pubsub,
@@ -442,6 +442,15 @@ export const getLinkedDocuments_queryDocument = gql `
442
442
  }
443
443
  }
444
444
  `;
445
+ export const getDocumentsDownloadLinks_queryDocument = gql `
446
+ query getDocumentsDownloadLinks_query($id: String!) {
447
+ getDocumentsDownloadLinks(id: $id) {
448
+ he
449
+ en
450
+ origin
451
+ }
452
+ }
453
+ `;
445
454
  export const getExpense_queryDocument = gql `
446
455
  query getExpense_query($id: String!) {
447
456
  getExpense(id: $id) {
@@ -1179,6 +1188,9 @@ export function getSdk(requester) {
1179
1188
  getLinkedDocuments_query(variables, options) {
1180
1189
  return requester(getLinkedDocuments_queryDocument, variables, options);
1181
1190
  },
1191
+ getDocumentsDownloadLinks_query(variables, options) {
1192
+ return requester(getDocumentsDownloadLinks_queryDocument, variables, options);
1193
+ },
1182
1194
  getExpense_query(variables, options) {
1183
1195
  return requester(getExpense_queryDocument, variables, options);
1184
1196
  },
@@ -24,6 +24,7 @@ type Query {
24
24
  searchDocuments(input: _DOLLAR_defs_searchDocumentsRequest_Input): _DOLLAR_defs_searchDocumentsResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/search", httpMethod: POST)
25
25
  previewDocument(input: _DOLLAR_defs_DocumentInputNew_Input): _DOLLAR_defs_previewDocumentResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/preview", httpMethod: POST)
26
26
  getLinkedDocuments(id: String!): _DOLLAR_defs_GetLinkedDocuments @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/linked", httpMethod: GET)
27
+ getDocumentsDownloadLinks(id: String!): _DOLLAR_defs_Url @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/download/links", httpMethod: GET)
27
28
  getExpense(id: String!): _DOLLAR_defs_GetExpense @httpOperation(subgraph: "GreenInvoice", path: "/expenses/{args.id}", httpMethod: GET)
28
29
  searchExpenses(input: _DOLLAR_defs_searchExpensesRequest_Input): _DOLLAR_defs_searchExpensesResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses/search", httpMethod: POST)
29
30
  searchExpenseDrafts(input: _DOLLAR_defs_searchExpenseDraftsRequest_Input): searchExpenseDrafts_response @httpOperation(subgraph: "GreenInvoice", path: "/expenses/drafts/search", httpMethod: POST)
@@ -20,6 +20,7 @@ type Query {
20
20
  searchDocuments(input: _DOLLAR_defs_searchDocumentsRequest_Input): _DOLLAR_defs_searchDocumentsResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/search", httpMethod: POST)
21
21
  previewDocument(input: _DOLLAR_defs_DocumentInputNew_Input): _DOLLAR_defs_previewDocumentResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/preview", httpMethod: POST)
22
22
  getLinkedDocuments(id: String!): _DOLLAR_defs_GetLinkedDocuments @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/linked", httpMethod: GET)
23
+ getDocumentsDownloadLinks(id: String!): _DOLLAR_defs_Url @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/download/links", httpMethod: GET)
23
24
  getExpense(id: String!): _DOLLAR_defs_GetExpense @httpOperation(subgraph: "GreenInvoice", path: "/expenses/{args.id}", httpMethod: GET)
24
25
  searchExpenses(input: _DOLLAR_defs_searchExpensesRequest_Input): _DOLLAR_defs_searchExpensesResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses/search", httpMethod: POST)
25
26
  searchExpenseDrafts(input: _DOLLAR_defs_searchExpenseDraftsRequest_Input): searchExpenseDrafts_response @httpOperation(subgraph: "GreenInvoice", path: "/expenses/drafts/search", httpMethod: POST)
@@ -915,6 +915,84 @@ const schemaAST = {
915
915
  }
916
916
  ]
917
917
  },
918
+ {
919
+ "kind": "FieldDefinition",
920
+ "name": {
921
+ "kind": "Name",
922
+ "value": "getDocumentsDownloadLinks"
923
+ },
924
+ "arguments": [
925
+ {
926
+ "kind": "InputValueDefinition",
927
+ "name": {
928
+ "kind": "Name",
929
+ "value": "id"
930
+ },
931
+ "type": {
932
+ "kind": "NonNullType",
933
+ "type": {
934
+ "kind": "NamedType",
935
+ "name": {
936
+ "kind": "Name",
937
+ "value": "String"
938
+ }
939
+ }
940
+ },
941
+ "directives": []
942
+ }
943
+ ],
944
+ "type": {
945
+ "kind": "NamedType",
946
+ "name": {
947
+ "kind": "Name",
948
+ "value": "_DOLLAR_defs_Url"
949
+ }
950
+ },
951
+ "directives": [
952
+ {
953
+ "kind": "Directive",
954
+ "name": {
955
+ "kind": "Name",
956
+ "value": "httpOperation"
957
+ },
958
+ "arguments": [
959
+ {
960
+ "kind": "Argument",
961
+ "name": {
962
+ "kind": "Name",
963
+ "value": "subgraph"
964
+ },
965
+ "value": {
966
+ "kind": "StringValue",
967
+ "value": "GreenInvoice"
968
+ }
969
+ },
970
+ {
971
+ "kind": "Argument",
972
+ "name": {
973
+ "kind": "Name",
974
+ "value": "path"
975
+ },
976
+ "value": {
977
+ "kind": "StringValue",
978
+ "value": "/documents/{args.id}/download/links"
979
+ }
980
+ },
981
+ {
982
+ "kind": "Argument",
983
+ "name": {
984
+ "kind": "Name",
985
+ "value": "httpMethod"
986
+ },
987
+ "value": {
988
+ "kind": "EnumValue",
989
+ "value": "GET"
990
+ }
991
+ }
992
+ ]
993
+ }
994
+ ]
995
+ },
918
996
  {
919
997
  "kind": "FieldDefinition",
920
998
  "name": {
@@ -119,6 +119,9 @@
119
119
  "getLinkedDocumentsResponse": {
120
120
  "$ref": "#/$defs/GetLinkedDocuments"
121
121
  },
122
+ "getDocumentsDownloadLinksResponse": {
123
+ "$ref": "#/$defs/Url"
124
+ },
122
125
  "addDocumentRequest": {
123
126
  "description": "Add a document to the current business",
124
127
  "allOf": [
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@accounter/green-invoice-graphql",
3
- "version": "0.8.3-alpha-20251209104241-0b63b5609688348798c300b5ba636e03a9d0e991",
3
+ "version": "0.8.3-alpha-20251209134546-ceea0fd621c6fbe94cbcc52356f259f4f9bd5462",
4
4
  "description": "Graphql proxy for Green Invoice API",
5
5
  "dependencies": {
6
- "@graphql-mesh/config": "0.108.20",
7
- "@graphql-mesh/cross-helpers": "0.4.10",
8
- "@graphql-mesh/http": "0.106.18",
9
- "@graphql-mesh/json-schema": "0.109.19",
10
- "@graphql-mesh/runtime": "0.106.18",
11
- "@graphql-mesh/store": "0.104.18",
12
- "@graphql-mesh/types": "0.104.17",
13
- "@graphql-mesh/utils": "0.104.17",
6
+ "@graphql-mesh/config": "0.108.21",
7
+ "@graphql-mesh/cross-helpers": "0.4.11",
8
+ "@graphql-mesh/http": "0.106.19",
9
+ "@graphql-mesh/json-schema": "0.109.20",
10
+ "@graphql-mesh/runtime": "0.106.19",
11
+ "@graphql-mesh/store": "0.104.19",
12
+ "@graphql-mesh/types": "0.104.18",
13
+ "@graphql-mesh/utils": "0.104.18",
14
14
  "graphql": "16.12.0",
15
15
  "path": "0.12.7"
16
16
  },
@@ -4,8 +4,8 @@ import type { GetMeshOptions } from '@graphql-mesh/runtime';
4
4
  import type { YamlConfig } from '@graphql-mesh/types';
5
5
  import { MeshHTTPHandler } from '@graphql-mesh/http';
6
6
  import { type ExecuteMeshFn, type SubscribeMeshFn, type MeshContext as BaseMeshContext, type MeshInstance } from '@graphql-mesh/runtime';
7
- import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
8
7
  import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
8
+ import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
9
9
  export type Maybe<T> = T | null;
10
10
  export type InputMaybe<T> = Maybe<T>;
11
11
  export type Exact<T extends {
@@ -112,6 +112,7 @@ export type Query = {
112
112
  searchDocuments?: Maybe<_DOLLAR_defs_searchDocumentsResponse>;
113
113
  previewDocument?: Maybe<_DOLLAR_defs_previewDocumentResponse>;
114
114
  getLinkedDocuments?: Maybe<_DOLLAR_defs_GetLinkedDocuments>;
115
+ getDocumentsDownloadLinks?: Maybe<_DOLLAR_defs_Url>;
115
116
  getExpense?: Maybe<_DOLLAR_defs_GetExpense>;
116
117
  searchExpenses?: Maybe<_DOLLAR_defs_searchExpensesResponse>;
117
118
  searchExpenseDrafts?: Maybe<searchExpenseDrafts_response>;
@@ -131,6 +132,9 @@ export type QuerypreviewDocumentArgs = {
131
132
  export type QuerygetLinkedDocumentsArgs = {
132
133
  id: Scalars['String']['input'];
133
134
  };
135
+ export type QuerygetDocumentsDownloadLinksArgs = {
136
+ id: Scalars['String']['input'];
137
+ };
134
138
  export type QuerygetExpenseArgs = {
135
139
  id: Scalars['String']['input'];
136
140
  };
@@ -1670,6 +1674,7 @@ export type QueryResolvers<ContextType = MeshContext, ParentType extends Resolve
1670
1674
  searchDocuments?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_searchDocumentsResponse']>, ParentType, ContextType, Partial<QuerysearchDocumentsArgs>>;
1671
1675
  previewDocument?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_previewDocumentResponse']>, ParentType, ContextType, Partial<QuerypreviewDocumentArgs>>;
1672
1676
  getLinkedDocuments?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_GetLinkedDocuments']>, ParentType, ContextType, RequireFields<QuerygetLinkedDocumentsArgs, 'id'>>;
1677
+ getDocumentsDownloadLinks?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Url']>, ParentType, ContextType, RequireFields<QuerygetDocumentsDownloadLinksArgs, 'id'>>;
1673
1678
  getExpense?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_GetExpense']>, ParentType, ContextType, RequireFields<QuerygetExpenseArgs, 'id'>>;
1674
1679
  searchExpenses?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_searchExpensesResponse']>, ParentType, ContextType, Partial<QuerysearchExpensesArgs>>;
1675
1680
  searchExpenseDrafts?: Resolver<Maybe<ResolversTypes['searchExpenseDrafts_response']>, ParentType, ContextType, Partial<QuerysearchExpenseDraftsArgs>>;
@@ -2294,6 +2299,9 @@ export declare function getMeshSDK<TGlobalContext = any, TOperationContext = any
2294
2299
  getLinkedDocuments_query(variables: Exact<{
2295
2300
  id: Scalars["String"]["input"];
2296
2301
  }>, options?: TOperationContext | undefined): Promise<getLinkedDocuments_queryQuery>;
2302
+ getDocumentsDownloadLinks_query(variables: Exact<{
2303
+ id: Scalars["String"]["input"];
2304
+ }>, options?: TOperationContext | undefined): Promise<getDocumentsDownloadLinks_queryQuery>;
2297
2305
  getExpense_query(variables: Exact<{
2298
2306
  id: Scalars["String"]["input"];
2299
2307
  }>, options?: TOperationContext | undefined): Promise<getExpense_queryQuery>;
@@ -2385,6 +2393,12 @@ export type getLinkedDocuments_queryQueryVariables = Exact<{
2385
2393
  export type getLinkedDocuments_queryQuery = {
2386
2394
  getLinkedDocuments?: Maybe<Pick<_DOLLAR_defs_GetLinkedDocuments, 'amount' | 'currency' | 'currencyRate' | 'documentDate' | 'id' | 'number' | 'status' | 'type'>>;
2387
2395
  };
2396
+ export type getDocumentsDownloadLinks_queryQueryVariables = Exact<{
2397
+ id: Scalars['String']['input'];
2398
+ }>;
2399
+ export type getDocumentsDownloadLinks_queryQuery = {
2400
+ getDocumentsDownloadLinks?: Maybe<Pick<_DOLLAR_defs_Url, 'he' | 'en' | 'origin'>>;
2401
+ };
2388
2402
  export type getExpense_queryQueryVariables = Exact<{
2389
2403
  id: Scalars['String']['input'];
2390
2404
  }>;
@@ -2515,6 +2529,7 @@ export declare const getDocument_queryDocument: DocumentNode<getDocument_queryQu
2515
2529
  export declare const searchDocuments_queryDocument: DocumentNode<searchDocuments_queryQuery, searchDocuments_queryQueryVariables>;
2516
2530
  export declare const previewDocument_queryDocument: DocumentNode<previewDocument_queryQuery, previewDocument_queryQueryVariables>;
2517
2531
  export declare const getLinkedDocuments_queryDocument: DocumentNode<getLinkedDocuments_queryQuery, getLinkedDocuments_queryQueryVariables>;
2532
+ export declare const getDocumentsDownloadLinks_queryDocument: DocumentNode<getDocumentsDownloadLinks_queryQuery, getDocumentsDownloadLinks_queryQueryVariables>;
2518
2533
  export declare const getExpense_queryDocument: DocumentNode<getExpense_queryQuery, getExpense_queryQueryVariables>;
2519
2534
  export declare const searchExpenses_queryDocument: DocumentNode<searchExpenses_queryQuery, searchExpenses_queryQueryVariables>;
2520
2535
  export declare const searchExpenseDrafts_queryDocument: DocumentNode<searchExpenseDrafts_queryQuery, searchExpenseDrafts_queryQueryVariables>;
@@ -2535,6 +2550,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
2535
2550
  searchDocuments_query(variables?: searchDocuments_queryQueryVariables, options?: C): Promise<searchDocuments_queryQuery>;
2536
2551
  previewDocument_query(variables?: previewDocument_queryQueryVariables, options?: C): Promise<previewDocument_queryQuery>;
2537
2552
  getLinkedDocuments_query(variables: getLinkedDocuments_queryQueryVariables, options?: C): Promise<getLinkedDocuments_queryQuery>;
2553
+ getDocumentsDownloadLinks_query(variables: getDocumentsDownloadLinks_queryQueryVariables, options?: C): Promise<getDocumentsDownloadLinks_queryQuery>;
2538
2554
  getExpense_query(variables: getExpense_queryQueryVariables, options?: C): Promise<getExpense_queryQuery>;
2539
2555
  searchExpenses_query(variables?: searchExpenses_queryQueryVariables, options?: C): Promise<searchExpenses_queryQuery>;
2540
2556
  searchExpenseDrafts_query(variables?: searchExpenseDrafts_queryQueryVariables, options?: C): Promise<searchExpenseDrafts_queryQuery>;
@@ -4,8 +4,8 @@ import type { GetMeshOptions } from '@graphql-mesh/runtime';
4
4
  import type { YamlConfig } from '@graphql-mesh/types';
5
5
  import { MeshHTTPHandler } from '@graphql-mesh/http';
6
6
  import { type ExecuteMeshFn, type SubscribeMeshFn, type MeshContext as BaseMeshContext, type MeshInstance } from '@graphql-mesh/runtime';
7
- import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
8
7
  import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
8
+ import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
9
9
  export type Maybe<T> = T | null;
10
10
  export type InputMaybe<T> = Maybe<T>;
11
11
  export type Exact<T extends {
@@ -112,6 +112,7 @@ export type Query = {
112
112
  searchDocuments?: Maybe<_DOLLAR_defs_searchDocumentsResponse>;
113
113
  previewDocument?: Maybe<_DOLLAR_defs_previewDocumentResponse>;
114
114
  getLinkedDocuments?: Maybe<_DOLLAR_defs_GetLinkedDocuments>;
115
+ getDocumentsDownloadLinks?: Maybe<_DOLLAR_defs_Url>;
115
116
  getExpense?: Maybe<_DOLLAR_defs_GetExpense>;
116
117
  searchExpenses?: Maybe<_DOLLAR_defs_searchExpensesResponse>;
117
118
  searchExpenseDrafts?: Maybe<searchExpenseDrafts_response>;
@@ -131,6 +132,9 @@ export type QuerypreviewDocumentArgs = {
131
132
  export type QuerygetLinkedDocumentsArgs = {
132
133
  id: Scalars['String']['input'];
133
134
  };
135
+ export type QuerygetDocumentsDownloadLinksArgs = {
136
+ id: Scalars['String']['input'];
137
+ };
134
138
  export type QuerygetExpenseArgs = {
135
139
  id: Scalars['String']['input'];
136
140
  };
@@ -1670,6 +1674,7 @@ export type QueryResolvers<ContextType = MeshContext, ParentType extends Resolve
1670
1674
  searchDocuments?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_searchDocumentsResponse']>, ParentType, ContextType, Partial<QuerysearchDocumentsArgs>>;
1671
1675
  previewDocument?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_previewDocumentResponse']>, ParentType, ContextType, Partial<QuerypreviewDocumentArgs>>;
1672
1676
  getLinkedDocuments?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_GetLinkedDocuments']>, ParentType, ContextType, RequireFields<QuerygetLinkedDocumentsArgs, 'id'>>;
1677
+ getDocumentsDownloadLinks?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Url']>, ParentType, ContextType, RequireFields<QuerygetDocumentsDownloadLinksArgs, 'id'>>;
1673
1678
  getExpense?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_GetExpense']>, ParentType, ContextType, RequireFields<QuerygetExpenseArgs, 'id'>>;
1674
1679
  searchExpenses?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_searchExpensesResponse']>, ParentType, ContextType, Partial<QuerysearchExpensesArgs>>;
1675
1680
  searchExpenseDrafts?: Resolver<Maybe<ResolversTypes['searchExpenseDrafts_response']>, ParentType, ContextType, Partial<QuerysearchExpenseDraftsArgs>>;
@@ -2294,6 +2299,9 @@ export declare function getMeshSDK<TGlobalContext = any, TOperationContext = any
2294
2299
  getLinkedDocuments_query(variables: Exact<{
2295
2300
  id: Scalars["String"]["input"];
2296
2301
  }>, options?: TOperationContext | undefined): Promise<getLinkedDocuments_queryQuery>;
2302
+ getDocumentsDownloadLinks_query(variables: Exact<{
2303
+ id: Scalars["String"]["input"];
2304
+ }>, options?: TOperationContext | undefined): Promise<getDocumentsDownloadLinks_queryQuery>;
2297
2305
  getExpense_query(variables: Exact<{
2298
2306
  id: Scalars["String"]["input"];
2299
2307
  }>, options?: TOperationContext | undefined): Promise<getExpense_queryQuery>;
@@ -2385,6 +2393,12 @@ export type getLinkedDocuments_queryQueryVariables = Exact<{
2385
2393
  export type getLinkedDocuments_queryQuery = {
2386
2394
  getLinkedDocuments?: Maybe<Pick<_DOLLAR_defs_GetLinkedDocuments, 'amount' | 'currency' | 'currencyRate' | 'documentDate' | 'id' | 'number' | 'status' | 'type'>>;
2387
2395
  };
2396
+ export type getDocumentsDownloadLinks_queryQueryVariables = Exact<{
2397
+ id: Scalars['String']['input'];
2398
+ }>;
2399
+ export type getDocumentsDownloadLinks_queryQuery = {
2400
+ getDocumentsDownloadLinks?: Maybe<Pick<_DOLLAR_defs_Url, 'he' | 'en' | 'origin'>>;
2401
+ };
2388
2402
  export type getExpense_queryQueryVariables = Exact<{
2389
2403
  id: Scalars['String']['input'];
2390
2404
  }>;
@@ -2515,6 +2529,7 @@ export declare const getDocument_queryDocument: DocumentNode<getDocument_queryQu
2515
2529
  export declare const searchDocuments_queryDocument: DocumentNode<searchDocuments_queryQuery, searchDocuments_queryQueryVariables>;
2516
2530
  export declare const previewDocument_queryDocument: DocumentNode<previewDocument_queryQuery, previewDocument_queryQueryVariables>;
2517
2531
  export declare const getLinkedDocuments_queryDocument: DocumentNode<getLinkedDocuments_queryQuery, getLinkedDocuments_queryQueryVariables>;
2532
+ export declare const getDocumentsDownloadLinks_queryDocument: DocumentNode<getDocumentsDownloadLinks_queryQuery, getDocumentsDownloadLinks_queryQueryVariables>;
2518
2533
  export declare const getExpense_queryDocument: DocumentNode<getExpense_queryQuery, getExpense_queryQueryVariables>;
2519
2534
  export declare const searchExpenses_queryDocument: DocumentNode<searchExpenses_queryQuery, searchExpenses_queryQueryVariables>;
2520
2535
  export declare const searchExpenseDrafts_queryDocument: DocumentNode<searchExpenseDrafts_queryQuery, searchExpenseDrafts_queryQueryVariables>;
@@ -2535,6 +2550,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
2535
2550
  searchDocuments_query(variables?: searchDocuments_queryQueryVariables, options?: C): Promise<searchDocuments_queryQuery>;
2536
2551
  previewDocument_query(variables?: previewDocument_queryQueryVariables, options?: C): Promise<previewDocument_queryQuery>;
2537
2552
  getLinkedDocuments_query(variables: getLinkedDocuments_queryQueryVariables, options?: C): Promise<getLinkedDocuments_queryQuery>;
2553
+ getDocumentsDownloadLinks_query(variables: getDocumentsDownloadLinks_queryQueryVariables, options?: C): Promise<getDocumentsDownloadLinks_queryQuery>;
2538
2554
  getExpense_query(variables: getExpense_queryQueryVariables, options?: C): Promise<getExpense_queryQuery>;
2539
2555
  searchExpenses_query(variables?: searchExpenses_queryQueryVariables, options?: C): Promise<searchExpenses_queryQuery>;
2540
2556
  searchExpenseDrafts_query(variables?: searchExpenseDrafts_queryQueryVariables, options?: C): Promise<searchExpenseDrafts_queryQuery>;
@@ -103,6 +103,7 @@ export declare namespace GreenInvoiceTypes {
103
103
  searchDocuments?: Maybe<_DOLLAR_defs_searchDocumentsResponse>;
104
104
  previewDocument?: Maybe<_DOLLAR_defs_previewDocumentResponse>;
105
105
  getLinkedDocuments?: Maybe<_DOLLAR_defs_GetLinkedDocuments>;
106
+ getDocumentsDownloadLinks?: Maybe<_DOLLAR_defs_Url>;
106
107
  getExpense?: Maybe<_DOLLAR_defs_GetExpense>;
107
108
  searchExpenses?: Maybe<_DOLLAR_defs_searchExpensesResponse>;
108
109
  searchExpenseDrafts?: Maybe<searchExpenseDrafts_response>;
@@ -120,6 +121,9 @@ export declare namespace GreenInvoiceTypes {
120
121
  type QuerygetLinkedDocumentsArgs = {
121
122
  id: Scalars['String']['input'];
122
123
  };
124
+ type QuerygetDocumentsDownloadLinksArgs = {
125
+ id: Scalars['String']['input'];
126
+ };
123
127
  type QuerygetExpenseArgs = {
124
128
  id: Scalars['String']['input'];
125
129
  };
@@ -1240,6 +1244,8 @@ export declare namespace GreenInvoiceTypes {
1240
1244
  /** undefined **/
1241
1245
  getLinkedDocuments: InContextSdkMethod<Query['getLinkedDocuments'], QuerygetLinkedDocumentsArgs, MeshContext>;
1242
1246
  /** undefined **/
1247
+ getDocumentsDownloadLinks: InContextSdkMethod<Query['getDocumentsDownloadLinks'], QuerygetDocumentsDownloadLinksArgs, MeshContext>;
1248
+ /** undefined **/
1243
1249
  getExpense: InContextSdkMethod<Query['getExpense'], QuerygetExpenseArgs, MeshContext>;
1244
1250
  /** undefined **/
1245
1251
  searchExpenses: InContextSdkMethod<Query['searchExpenses'], QuerysearchExpensesArgs, MeshContext>;
@@ -103,6 +103,7 @@ export declare namespace GreenInvoiceTypes {
103
103
  searchDocuments?: Maybe<_DOLLAR_defs_searchDocumentsResponse>;
104
104
  previewDocument?: Maybe<_DOLLAR_defs_previewDocumentResponse>;
105
105
  getLinkedDocuments?: Maybe<_DOLLAR_defs_GetLinkedDocuments>;
106
+ getDocumentsDownloadLinks?: Maybe<_DOLLAR_defs_Url>;
106
107
  getExpense?: Maybe<_DOLLAR_defs_GetExpense>;
107
108
  searchExpenses?: Maybe<_DOLLAR_defs_searchExpensesResponse>;
108
109
  searchExpenseDrafts?: Maybe<searchExpenseDrafts_response>;
@@ -120,6 +121,9 @@ export declare namespace GreenInvoiceTypes {
120
121
  type QuerygetLinkedDocumentsArgs = {
121
122
  id: Scalars['String']['input'];
122
123
  };
124
+ type QuerygetDocumentsDownloadLinksArgs = {
125
+ id: Scalars['String']['input'];
126
+ };
123
127
  type QuerygetExpenseArgs = {
124
128
  id: Scalars['String']['input'];
125
129
  };
@@ -1240,6 +1244,8 @@ export declare namespace GreenInvoiceTypes {
1240
1244
  /** undefined **/
1241
1245
  getLinkedDocuments: InContextSdkMethod<Query['getLinkedDocuments'], QuerygetLinkedDocumentsArgs, MeshContext>;
1242
1246
  /** undefined **/
1247
+ getDocumentsDownloadLinks: InContextSdkMethod<Query['getDocumentsDownloadLinks'], QuerygetDocumentsDownloadLinksArgs, MeshContext>;
1248
+ /** undefined **/
1243
1249
  getExpense: InContextSdkMethod<Query['getExpense'], QuerygetExpenseArgs, MeshContext>;
1244
1250
  /** undefined **/
1245
1251
  searchExpenses: InContextSdkMethod<Query['searchExpenses'], QuerysearchExpensesArgs, MeshContext>;