@snokam/mcp-api 3.5.1 → 3.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snokam/mcp-api",
3
- "version": "3.5.1",
3
+ "version": "3.6.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/snokam/monorepo.git",
@@ -2802,17 +2802,17 @@
2802
2802
  ]
2803
2803
  }
2804
2804
  },
2805
- "/v1.0/reinvoicing/subcontractor/run": {
2805
+ "/v1.0/reinvoicing/run": {
2806
2806
  "post": {
2807
2807
  "tags": [
2808
2808
  "Reinvoicing"
2809
2809
  ],
2810
- "summary": "Run the subcontractor draft automation now",
2811
- "description": "Runs the same batch as the nightly cron for the last full month to date: finds new incoming supplier invoices (bilag) on markup projects and creates the DRAFT re-invoices, skipping any bilag that already has a draft. Drafts are never sent.",
2812
- "operationId": "RunSubcontractorReinvoicing",
2810
+ "summary": "Run the re-invoicing draft automation now",
2811
+ "description": "Runs both nightly sweeps for the last full month to date. Markup: finds new incoming supplier invoices (bilag) on markup projects and creates the DRAFT re-invoices. Kick-back: matches forwarded customer invoices and creates the DRAFT provision invoices. Both skip anything already drafted, and drafts are never sent.",
2812
+ "operationId": "RunReinvoicing",
2813
2813
  "responses": {
2814
2814
  "200": {
2815
- "description": "The number of new draft invoices created.",
2815
+ "description": "New drafts created, split by subcontractor kind.",
2816
2816
  "content": {
2817
2817
  "application/json": {
2818
2818
  "schema": {
@@ -3130,7 +3130,7 @@
3130
3130
  ]
3131
3131
  }
3132
3132
  },
3133
- "/v1.0/reinvoicing/voucher/{voucherId}/pdf": {
3133
+ "/v1.0/reinvoicing/voucher/{voucherNo}/pdf": {
3134
3134
  "get": {
3135
3135
  "tags": [
3136
3136
  "Reinvoicing"
@@ -3140,12 +3140,12 @@
3140
3140
  "operationId": "GetReinvoicingVoucherPdf",
3141
3141
  "parameters": [
3142
3142
  {
3143
- "name": "voucherId",
3143
+ "name": "voucherNo",
3144
3144
  "in": "path",
3145
3145
  "required": true,
3146
3146
  "schema": {
3147
- "type": "string",
3148
- "format": "uuid"
3147
+ "type": "integer",
3148
+ "format": "int64"
3149
3149
  }
3150
3150
  }
3151
3151
  ],
@@ -6628,6 +6628,15 @@
6628
6628
  },
6629
6629
  "draft": {
6630
6630
  "$ref": "#/components/schemas/subcontractorInvoiceDraft"
6631
+ },
6632
+ "timesheet": {
6633
+ "$ref": "#/components/schemas/timesheet"
6634
+ },
6635
+ "timesheetDocument": {
6636
+ "$ref": "#/components/schemas/voucherDocument"
6637
+ },
6638
+ "timesheetNote": {
6639
+ "type": "string"
6631
6640
  }
6632
6641
  }
6633
6642
  },
@@ -6713,6 +6722,14 @@
6713
6722
  "subcontractorRunResult": {
6714
6723
  "type": "object",
6715
6724
  "properties": {
6725
+ "markupDraftsCreated": {
6726
+ "type": "integer",
6727
+ "format": "int32"
6728
+ },
6729
+ "kickbackDraftsCreated": {
6730
+ "type": "integer",
6731
+ "format": "int32"
6732
+ },
6716
6733
  "draftsCreated": {
6717
6734
  "type": "integer",
6718
6735
  "format": "int32"
@@ -6726,6 +6743,10 @@
6726
6743
  "type": "string",
6727
6744
  "format": "uuid"
6728
6745
  },
6746
+ "voucherNo": {
6747
+ "type": "integer",
6748
+ "format": "int64"
6749
+ },
6729
6750
  "supplierCode": {
6730
6751
  "type": "integer",
6731
6752
  "format": "int64"
@@ -6783,6 +6804,60 @@
6783
6804
  }
6784
6805
  }
6785
6806
  },
6807
+ "timesheet": {
6808
+ "type": "object",
6809
+ "properties": {
6810
+ "consultant": {
6811
+ "type": "string"
6812
+ },
6813
+ "currency": {
6814
+ "type": "string"
6815
+ },
6816
+ "entries": {
6817
+ "type": "array",
6818
+ "items": {
6819
+ "$ref": "#/components/schemas/timesheetEntry"
6820
+ }
6821
+ },
6822
+ "totalHours": {
6823
+ "type": "number",
6824
+ "format": "double"
6825
+ },
6826
+ "totalAmount": {
6827
+ "type": "number",
6828
+ "format": "double"
6829
+ },
6830
+ "rate": {
6831
+ "type": "number",
6832
+ "format": "double",
6833
+ "nullable": true
6834
+ }
6835
+ }
6836
+ },
6837
+ "timesheetEntry": {
6838
+ "type": "object",
6839
+ "properties": {
6840
+ "date": {
6841
+ "type": "string",
6842
+ "format": "date-time"
6843
+ },
6844
+ "activity": {
6845
+ "type": "string"
6846
+ },
6847
+ "hours": {
6848
+ "type": "number",
6849
+ "format": "double"
6850
+ },
6851
+ "rate": {
6852
+ "type": "number",
6853
+ "format": "double"
6854
+ },
6855
+ "amount": {
6856
+ "type": "number",
6857
+ "format": "double"
6858
+ }
6859
+ }
6860
+ },
6786
6861
  "timeTransactionRecord": {
6787
6862
  "type": "object",
6788
6863
  "properties": {
@@ -2802,17 +2802,17 @@
2802
2802
  ]
2803
2803
  }
2804
2804
  },
2805
- "/v1.0/reinvoicing/subcontractor/run": {
2805
+ "/v1.0/reinvoicing/run": {
2806
2806
  "post": {
2807
2807
  "tags": [
2808
2808
  "Reinvoicing"
2809
2809
  ],
2810
- "summary": "Run the subcontractor draft automation now",
2811
- "description": "Runs the same batch as the nightly cron for the last full month to date: finds new incoming supplier invoices (bilag) on markup projects and creates the DRAFT re-invoices, skipping any bilag that already has a draft. Drafts are never sent.",
2812
- "operationId": "RunSubcontractorReinvoicing",
2810
+ "summary": "Run the re-invoicing draft automation now",
2811
+ "description": "Runs both nightly sweeps for the last full month to date. Markup: finds new incoming supplier invoices (bilag) on markup projects and creates the DRAFT re-invoices. Kick-back: matches forwarded customer invoices and creates the DRAFT provision invoices. Both skip anything already drafted, and drafts are never sent.",
2812
+ "operationId": "RunReinvoicing",
2813
2813
  "responses": {
2814
2814
  "200": {
2815
- "description": "The number of new draft invoices created.",
2815
+ "description": "New drafts created, split by subcontractor kind.",
2816
2816
  "content": {
2817
2817
  "application/json": {
2818
2818
  "schema": {
@@ -3130,7 +3130,7 @@
3130
3130
  ]
3131
3131
  }
3132
3132
  },
3133
- "/v1.0/reinvoicing/voucher/{voucherId}/pdf": {
3133
+ "/v1.0/reinvoicing/voucher/{voucherNo}/pdf": {
3134
3134
  "get": {
3135
3135
  "tags": [
3136
3136
  "Reinvoicing"
@@ -3140,12 +3140,12 @@
3140
3140
  "operationId": "GetReinvoicingVoucherPdf",
3141
3141
  "parameters": [
3142
3142
  {
3143
- "name": "voucherId",
3143
+ "name": "voucherNo",
3144
3144
  "in": "path",
3145
3145
  "required": true,
3146
3146
  "schema": {
3147
- "type": "string",
3148
- "format": "uuid"
3147
+ "type": "integer",
3148
+ "format": "int64"
3149
3149
  }
3150
3150
  }
3151
3151
  ],
@@ -6628,6 +6628,15 @@
6628
6628
  },
6629
6629
  "draft": {
6630
6630
  "$ref": "#/components/schemas/subcontractorInvoiceDraft"
6631
+ },
6632
+ "timesheet": {
6633
+ "$ref": "#/components/schemas/timesheet"
6634
+ },
6635
+ "timesheetDocument": {
6636
+ "$ref": "#/components/schemas/voucherDocument"
6637
+ },
6638
+ "timesheetNote": {
6639
+ "type": "string"
6631
6640
  }
6632
6641
  }
6633
6642
  },
@@ -6713,6 +6722,14 @@
6713
6722
  "subcontractorRunResult": {
6714
6723
  "type": "object",
6715
6724
  "properties": {
6725
+ "markupDraftsCreated": {
6726
+ "type": "integer",
6727
+ "format": "int32"
6728
+ },
6729
+ "kickbackDraftsCreated": {
6730
+ "type": "integer",
6731
+ "format": "int32"
6732
+ },
6716
6733
  "draftsCreated": {
6717
6734
  "type": "integer",
6718
6735
  "format": "int32"
@@ -6726,6 +6743,10 @@
6726
6743
  "type": "string",
6727
6744
  "format": "uuid"
6728
6745
  },
6746
+ "voucherNo": {
6747
+ "type": "integer",
6748
+ "format": "int64"
6749
+ },
6729
6750
  "supplierCode": {
6730
6751
  "type": "integer",
6731
6752
  "format": "int64"
@@ -6783,6 +6804,60 @@
6783
6804
  }
6784
6805
  }
6785
6806
  },
6807
+ "timesheet": {
6808
+ "type": "object",
6809
+ "properties": {
6810
+ "consultant": {
6811
+ "type": "string"
6812
+ },
6813
+ "currency": {
6814
+ "type": "string"
6815
+ },
6816
+ "entries": {
6817
+ "type": "array",
6818
+ "items": {
6819
+ "$ref": "#/components/schemas/timesheetEntry"
6820
+ }
6821
+ },
6822
+ "totalHours": {
6823
+ "type": "number",
6824
+ "format": "double"
6825
+ },
6826
+ "totalAmount": {
6827
+ "type": "number",
6828
+ "format": "double"
6829
+ },
6830
+ "rate": {
6831
+ "type": "number",
6832
+ "format": "double",
6833
+ "nullable": true
6834
+ }
6835
+ }
6836
+ },
6837
+ "timesheetEntry": {
6838
+ "type": "object",
6839
+ "properties": {
6840
+ "date": {
6841
+ "type": "string",
6842
+ "format": "date-time"
6843
+ },
6844
+ "activity": {
6845
+ "type": "string"
6846
+ },
6847
+ "hours": {
6848
+ "type": "number",
6849
+ "format": "double"
6850
+ },
6851
+ "rate": {
6852
+ "type": "number",
6853
+ "format": "double"
6854
+ },
6855
+ "amount": {
6856
+ "type": "number",
6857
+ "format": "double"
6858
+ }
6859
+ }
6860
+ },
6786
6861
  "timeTransactionRecord": {
6787
6862
  "type": "object",
6788
6863
  "properties": {