@withnicer/sdk 1.0.0-beta.1 → 1.0.0-beta.2

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.
@@ -1,9 +1,67 @@
1
+ /** The values of `FulfillmentState`, in the document's order. */
2
+ export declare const fulfillmentStateOptions: readonly ["NOT_STARTED", "PENDING_ISSUANCE", "PARTIALLY_ISSUED", "ISSUED", "FAILED", "UNKNOWN"];
3
+ /** The values of `PaymentState`, in the document's order. */
4
+ export declare const paymentStateOptions: readonly ["NOT_STARTED", "AWAITING_METHOD", "REQUIRES_ACTION", "PROCESSING", "AUTHORIZED", "SUCCEEDED", "DECLINED", "CANCELLED", "PARTIALLY_REFUNDED", "REFUNDED", "UNKNOWN"];
5
+ /** The values of `ReservationState`, in the document's order. */
6
+ export declare const reservationStateOptions: readonly ["NOT_STARTED", "HOLDING", "HELD", "CONFIRMED", "CANCELLATION_PROCESSING", "CANCELLED", "EXPIRED", "UNKNOWN"];
7
+ /** The values of `OrderLifecycleStatus`, in the document's order. */
8
+ export declare const orderLifecycleStatusOptions: readonly ["DRAFT", "AWAITING_PAYMENT", "HOLDING", "HELD", "PAYMENT_PROCESSING", "TICKETING", "BOOKED", "CANCELLATION_PROCESSING", "CANCELLED", "EXPIRED", "NEEDS_ATTENTION", "FAILED"];
1
9
  /** The values of `ProductKind`, in the document's order. */
2
10
  export declare const productKindOptions: readonly ["CAR_RENTAL", "FLIGHT", "HOTEL", "INSURANCE"];
11
+ /** The values of `CommissionPaymentStatus`, in the document's order. */
12
+ export declare const commissionPaymentStatusOptions: readonly ["UPCOMING", "DUE", "OVERDUE", "PAID", "CANCELLED", "NOT_COMMISSIONABLE"];
3
13
  /** The values of `TravelersTripRelationship`, in the document's order. */
4
14
  export declare const travelersTripRelationshipOptions: readonly ["BILLING_CONTACT", "PAYER", "PRIMARY", "TRAVELER"];
5
15
  /** The values of `ParticipantField`, in the document's order. */
6
16
  export declare const participantFieldOptions: readonly ["ADDRESS", "BIRTH_DATE", "CONTACT_EMAIL", "CONTACT_PHONE", "DOCUMENTS", "NAME", "NATIONALITY", "SEX"];
17
+ /** The values of `GrantScopeKind`, in the document's order. */
18
+ export declare const grantScopeKindOptions: readonly ["USER", "TRIP", "ADVISOR"];
19
+ /** The values of `ExportFormat`, in the document's order. */
20
+ export declare const exportFormatOptions: readonly ["CSV", "XLSX", "PDF"];
21
+ /** The values of `CommissionExportStatus`, in the document's order. */
22
+ export declare const commissionExportStatusOptions: readonly ["QUEUED", "RUNNING", "READY", "FAILED", "EXPIRED"];
23
+ /** The values of `ExportSubject`, in the document's order. */
24
+ export declare const exportSubjectOptions: readonly ["COMMISSION_ITEMS", "PAYMENTS", "REMITTANCES", "STATEMENTS", "SUPPLIERS", "PAYEES", "PAYOUTS", "COMMISSION_INVOICES", "EARNINGS", "AGENCY"];
25
+ /** The values of `CommissionFileStatus`, in the document's order. */
26
+ export declare const commissionFileStatusOptions: readonly ["AWAITING_UPLOAD", "UPLOADED", "PARSING", "READY", "COMMITTING", "COMMITTED", "UNDONE", "DISCARDED", "FAILED"];
27
+ /** The values of `BookingImportField`, in the document's order. */
28
+ export declare const bookingImportFieldOptions: readonly ["bookedOn", "category", "clientName", "commission", "confirmationNumber", "currency", "dueOn", "externalReference", "gross", "identifierNumber", "kind", "note", "paymentTermDays", "providerLocator", "quantity", "rate", "supplierName", "tags", "travelEnd", "travelStart", "advisorEmail"];
29
+ /** The values of `CommissionCategory`, in the document's order. */
30
+ export declare const commissionCategoryOptions: readonly ["HOTEL", "CRUISE", "TOUR", "DMC", "FLIGHT", "CAR_RENTAL", "RAIL", "INSURANCE", "TRANSFER", "CONCIERGE", "FEE", "OTHER"];
31
+ /** The values of `AgingBucket`, in the document's order. */
32
+ export declare const agingBucketOptions: readonly ["NOT_TRAVELED", "0_30", "31_60", "61_90", "91_180", "180_PLUS"];
33
+ /** The values of `CommissionItemKind`, in the document's order. */
34
+ export declare const commissionItemKindOptions: readonly ["SUPPLIER_COMMISSION", "CLIENT_NET_MARKUP", "CLIENT_FEE"];
35
+ /** The values of `CommissionItemSource`, in the document's order. */
36
+ export declare const commissionItemSourceOptions: readonly ["CHECKOUT", "GDS_IMPORT", "MANUAL", "FILE_IMPORT"];
37
+ /** The values of `PayoutMethod`, in the document's order. */
38
+ export declare const payoutMethodOptions: readonly ["STRIPE_CONNECT", "CHECK", "MANUAL"];
39
+ /** The values of `PayoutStatus`, in the document's order. */
40
+ export declare const payoutStatusOptions: readonly ["PENDING", "PAID", "FAILED", "CANCELLED"];
41
+ /** The values of `CommissionChannel`, in the document's order. */
42
+ export declare const commissionChannelOptions: readonly ["ARC", "BSP", "CHECK", "ACH", "WIRE", "CARD", "STRIPE", "CASH", "HOST_STATEMENT", "OTHER"];
43
+ /** The values of `RemittanceImportField`, in the document's order. */
44
+ export declare const remittanceImportFieldOptions: readonly ["amount", "bookingGross", "checkIn", "checkOut", "clientName", "confirmationNumber", "currency", "fee", "fxRate", "identifierNumber", "originalAmount", "originalCurrency", "payableOn", "payerName", "paymentReference", "rate", "receivedOn", "supplierName"];
45
+ /** The values of `RemittancePayerKind`, in the document's order. */
46
+ export declare const remittancePayerKindOptions: readonly ["SUPPLIER", "HOST", "CLIENT", "OTHER"];
47
+ /** The values of `RemittanceState`, in the document's order. */
48
+ export declare const remittanceStateOptions: readonly ["DRAFT", "POSTED", "DUPLICATE", "VOID"];
49
+ /** The values of `LineExclusionReason`, in the document's order. */
50
+ export declare const lineExclusionReasonOptions: readonly ["DUPLICATE", "NOT_COMMISSION", "OTHER_COMPANY", "OTHER"];
51
+ /** The values of `RemittanceLineMatchState`, in the document's order. */
52
+ export declare const remittanceLineMatchStateOptions: readonly ["UNMATCHED", "PROPOSED", "PENDING_REVIEW", "MATCHED", "EXCLUDED", "ZERO"];
53
+ /** The values of `MatchFeature`, in the document's order. */
54
+ export declare const matchFeatureOptions: readonly ["CONFIRMATION", "SUPPLIER", "CLIENT_LAST_NAME", "CLIENT_FIRST_NAME", "CHECK_IN", "CHECK_OUT", "AMOUNT", "IDENTIFIER", "DISTANCE_PENALTY", "CURRENCY_PENALTY", "PAID_PENALTY"];
55
+ /** The values of `SupplierContactRole`, in the document's order. */
56
+ export declare const supplierContactRoleOptions: readonly ["COMMISSIONS", "ACCOUNTING", "RESERVATIONS", "SALES", "OTHER"];
57
+ /** The values of `SupplierKind`, in the document's order. */
58
+ export declare const supplierKindOptions: readonly ["PROPERTY", "CRUISE_LINE", "TOUR_OPERATOR", "DMC", "AIRLINE", "CAR_RENTAL", "RAIL", "INSURANCE", "TRANSFER", "OTHER"];
59
+ /** The values of `ImportRowStatus`, in the document's order. */
60
+ export declare const importRowStatusOptions: readonly ["VALID", "INVALID", "DUPLICATE", "COMMITTED", "SKIPPED"];
61
+ /** The values of `StatementStatus`, in the document's order. */
62
+ export declare const statementStatusOptions: readonly ["OPEN", "PENDING_APPROVAL", "APPROVED", "PAID", "VOID"];
63
+ /** The values of `ReconciliationExceptionKind`, in the document's order. */
64
+ export declare const reconciliationExceptionKindOptions: readonly ["UNMATCHED_LINE", "PENDING_REVIEW_LINE", "OVERPAID_ITEM", "PENDING_CLAIM"];
7
65
  /** The values of `SalesStage`, in the document's order. */
8
66
  export declare const salesStageOptions: readonly ["BOOKED", "COMPLETED", "INQUIRY", "LOST", "PLANNING", "PROPOSAL", "TRAVELING"];
9
67
  /** The values of `TravelDocumentKind`, in the document's order. */
@@ -48,5 +106,9 @@ export declare const tripItineraryModeOptions: readonly ["AUTO", "CUSTOM"];
48
106
  export declare const tripItineraryStatusOptions: readonly ["PROPOSAL", "IN_PROGRESS", "TRAVELING"];
49
107
  /** The values of `FlightMeal`, in the document's order. */
50
108
  export declare const flightMealOptions: readonly ["BREAKFAST", "DINNER", "FOR_PURCHASE", "LUNCH", "MEAL", "NONE", "REFRESHMENTS", "SNACK"];
109
+ /** The values of `AttachmentContentType`, in the document's order. */
110
+ export declare const attachmentContentTypeOptions: readonly ["application/pdf", "image/jpeg", "image/png", "message/rfc822", "text/csv", "text/plain", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"];
111
+ /** The values of `PeriodComparison`, in the document's order. */
112
+ export declare const periodComparisonOptions: readonly ["PREVIOUS_PERIOD", "SAME_PERIOD_LAST_YEAR", "NONE"];
51
113
  /** The values of `FlightSort`, in the document's order. */
52
114
  export declare const flightSortOptions: readonly ["best", "price", "-price", "duration", "departure", "-departure", "arrival", "-arrival", "stops"];
@@ -1,10 +1,68 @@
1
1
  // Code generated by scripts/prepare.ts from the OpenAPI document. DO NOT EDIT.
2
+ /** The values of `FulfillmentState`, in the document's order. */
3
+ export const fulfillmentStateOptions = ["NOT_STARTED", "PENDING_ISSUANCE", "PARTIALLY_ISSUED", "ISSUED", "FAILED", "UNKNOWN"];
4
+ /** The values of `PaymentState`, in the document's order. */
5
+ export const paymentStateOptions = ["NOT_STARTED", "AWAITING_METHOD", "REQUIRES_ACTION", "PROCESSING", "AUTHORIZED", "SUCCEEDED", "DECLINED", "CANCELLED", "PARTIALLY_REFUNDED", "REFUNDED", "UNKNOWN"];
6
+ /** The values of `ReservationState`, in the document's order. */
7
+ export const reservationStateOptions = ["NOT_STARTED", "HOLDING", "HELD", "CONFIRMED", "CANCELLATION_PROCESSING", "CANCELLED", "EXPIRED", "UNKNOWN"];
8
+ /** The values of `OrderLifecycleStatus`, in the document's order. */
9
+ export const orderLifecycleStatusOptions = ["DRAFT", "AWAITING_PAYMENT", "HOLDING", "HELD", "PAYMENT_PROCESSING", "TICKETING", "BOOKED", "CANCELLATION_PROCESSING", "CANCELLED", "EXPIRED", "NEEDS_ATTENTION", "FAILED"];
2
10
  /** The values of `ProductKind`, in the document's order. */
3
11
  export const productKindOptions = ["CAR_RENTAL", "FLIGHT", "HOTEL", "INSURANCE"];
12
+ /** The values of `CommissionPaymentStatus`, in the document's order. */
13
+ export const commissionPaymentStatusOptions = ["UPCOMING", "DUE", "OVERDUE", "PAID", "CANCELLED", "NOT_COMMISSIONABLE"];
4
14
  /** The values of `TravelersTripRelationship`, in the document's order. */
5
15
  export const travelersTripRelationshipOptions = ["BILLING_CONTACT", "PAYER", "PRIMARY", "TRAVELER"];
6
16
  /** The values of `ParticipantField`, in the document's order. */
7
17
  export const participantFieldOptions = ["ADDRESS", "BIRTH_DATE", "CONTACT_EMAIL", "CONTACT_PHONE", "DOCUMENTS", "NAME", "NATIONALITY", "SEX"];
18
+ /** The values of `GrantScopeKind`, in the document's order. */
19
+ export const grantScopeKindOptions = ["USER", "TRIP", "ADVISOR"];
20
+ /** The values of `ExportFormat`, in the document's order. */
21
+ export const exportFormatOptions = ["CSV", "XLSX", "PDF"];
22
+ /** The values of `CommissionExportStatus`, in the document's order. */
23
+ export const commissionExportStatusOptions = ["QUEUED", "RUNNING", "READY", "FAILED", "EXPIRED"];
24
+ /** The values of `ExportSubject`, in the document's order. */
25
+ export const exportSubjectOptions = ["COMMISSION_ITEMS", "PAYMENTS", "REMITTANCES", "STATEMENTS", "SUPPLIERS", "PAYEES", "PAYOUTS", "COMMISSION_INVOICES", "EARNINGS", "AGENCY"];
26
+ /** The values of `CommissionFileStatus`, in the document's order. */
27
+ export const commissionFileStatusOptions = ["AWAITING_UPLOAD", "UPLOADED", "PARSING", "READY", "COMMITTING", "COMMITTED", "UNDONE", "DISCARDED", "FAILED"];
28
+ /** The values of `BookingImportField`, in the document's order. */
29
+ export const bookingImportFieldOptions = ["bookedOn", "category", "clientName", "commission", "confirmationNumber", "currency", "dueOn", "externalReference", "gross", "identifierNumber", "kind", "note", "paymentTermDays", "providerLocator", "quantity", "rate", "supplierName", "tags", "travelEnd", "travelStart", "advisorEmail"];
30
+ /** The values of `CommissionCategory`, in the document's order. */
31
+ export const commissionCategoryOptions = ["HOTEL", "CRUISE", "TOUR", "DMC", "FLIGHT", "CAR_RENTAL", "RAIL", "INSURANCE", "TRANSFER", "CONCIERGE", "FEE", "OTHER"];
32
+ /** The values of `AgingBucket`, in the document's order. */
33
+ export const agingBucketOptions = ["NOT_TRAVELED", "0_30", "31_60", "61_90", "91_180", "180_PLUS"];
34
+ /** The values of `CommissionItemKind`, in the document's order. */
35
+ export const commissionItemKindOptions = ["SUPPLIER_COMMISSION", "CLIENT_NET_MARKUP", "CLIENT_FEE"];
36
+ /** The values of `CommissionItemSource`, in the document's order. */
37
+ export const commissionItemSourceOptions = ["CHECKOUT", "GDS_IMPORT", "MANUAL", "FILE_IMPORT"];
38
+ /** The values of `PayoutMethod`, in the document's order. */
39
+ export const payoutMethodOptions = ["STRIPE_CONNECT", "CHECK", "MANUAL"];
40
+ /** The values of `PayoutStatus`, in the document's order. */
41
+ export const payoutStatusOptions = ["PENDING", "PAID", "FAILED", "CANCELLED"];
42
+ /** The values of `CommissionChannel`, in the document's order. */
43
+ export const commissionChannelOptions = ["ARC", "BSP", "CHECK", "ACH", "WIRE", "CARD", "STRIPE", "CASH", "HOST_STATEMENT", "OTHER"];
44
+ /** The values of `RemittanceImportField`, in the document's order. */
45
+ export const remittanceImportFieldOptions = ["amount", "bookingGross", "checkIn", "checkOut", "clientName", "confirmationNumber", "currency", "fee", "fxRate", "identifierNumber", "originalAmount", "originalCurrency", "payableOn", "payerName", "paymentReference", "rate", "receivedOn", "supplierName"];
46
+ /** The values of `RemittancePayerKind`, in the document's order. */
47
+ export const remittancePayerKindOptions = ["SUPPLIER", "HOST", "CLIENT", "OTHER"];
48
+ /** The values of `RemittanceState`, in the document's order. */
49
+ export const remittanceStateOptions = ["DRAFT", "POSTED", "DUPLICATE", "VOID"];
50
+ /** The values of `LineExclusionReason`, in the document's order. */
51
+ export const lineExclusionReasonOptions = ["DUPLICATE", "NOT_COMMISSION", "OTHER_COMPANY", "OTHER"];
52
+ /** The values of `RemittanceLineMatchState`, in the document's order. */
53
+ export const remittanceLineMatchStateOptions = ["UNMATCHED", "PROPOSED", "PENDING_REVIEW", "MATCHED", "EXCLUDED", "ZERO"];
54
+ /** The values of `MatchFeature`, in the document's order. */
55
+ export const matchFeatureOptions = ["CONFIRMATION", "SUPPLIER", "CLIENT_LAST_NAME", "CLIENT_FIRST_NAME", "CHECK_IN", "CHECK_OUT", "AMOUNT", "IDENTIFIER", "DISTANCE_PENALTY", "CURRENCY_PENALTY", "PAID_PENALTY"];
56
+ /** The values of `SupplierContactRole`, in the document's order. */
57
+ export const supplierContactRoleOptions = ["COMMISSIONS", "ACCOUNTING", "RESERVATIONS", "SALES", "OTHER"];
58
+ /** The values of `SupplierKind`, in the document's order. */
59
+ export const supplierKindOptions = ["PROPERTY", "CRUISE_LINE", "TOUR_OPERATOR", "DMC", "AIRLINE", "CAR_RENTAL", "RAIL", "INSURANCE", "TRANSFER", "OTHER"];
60
+ /** The values of `ImportRowStatus`, in the document's order. */
61
+ export const importRowStatusOptions = ["VALID", "INVALID", "DUPLICATE", "COMMITTED", "SKIPPED"];
62
+ /** The values of `StatementStatus`, in the document's order. */
63
+ export const statementStatusOptions = ["OPEN", "PENDING_APPROVAL", "APPROVED", "PAID", "VOID"];
64
+ /** The values of `ReconciliationExceptionKind`, in the document's order. */
65
+ export const reconciliationExceptionKindOptions = ["UNMATCHED_LINE", "PENDING_REVIEW_LINE", "OVERPAID_ITEM", "PENDING_CLAIM"];
8
66
  /** The values of `SalesStage`, in the document's order. */
9
67
  export const salesStageOptions = ["BOOKED", "COMPLETED", "INQUIRY", "LOST", "PLANNING", "PROPOSAL", "TRAVELING"];
10
68
  /** The values of `TravelDocumentKind`, in the document's order. */
@@ -49,5 +107,9 @@ export const tripItineraryModeOptions = ["AUTO", "CUSTOM"];
49
107
  export const tripItineraryStatusOptions = ["PROPOSAL", "IN_PROGRESS", "TRAVELING"];
50
108
  /** The values of `FlightMeal`, in the document's order. */
51
109
  export const flightMealOptions = ["BREAKFAST", "DINNER", "FOR_PURCHASE", "LUNCH", "MEAL", "NONE", "REFRESHMENTS", "SNACK"];
110
+ /** The values of `AttachmentContentType`, in the document's order. */
111
+ export const attachmentContentTypeOptions = ["application/pdf", "image/jpeg", "image/png", "message/rfc822", "text/csv", "text/plain", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"];
112
+ /** The values of `PeriodComparison`, in the document's order. */
113
+ export const periodComparisonOptions = ["PREVIOUS_PERIOD", "SAME_PERIOD_LAST_YEAR", "NONE"];
52
114
  /** The values of `FlightSort`, in the document's order. */
53
115
  export const flightSortOptions = ["best", "price", "-price", "duration", "departure", "-departure", "arrival", "-arrival", "stops"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withnicer/sdk",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "description": "The Nicer API for TypeScript and JavaScript, generated by Cloudflare Forge from Nicer's public OpenAPI document.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "nicer": {
44
44
  "openapi": {
45
45
  "release": "1.0.0",
46
- "sha256": "58989aef910eaa24bad444ddfb7d1c688d636d454b29d468ede9e1df787a33aa"
46
+ "sha256": "b8fbba3f2206da3df0da19a7b8353e950e830037ed915ee9fc5b0c3103f56554"
47
47
  }
48
48
  }
49
49
  }