Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Bump IOS version (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez authored Jul 30, 2024
1 parent 37e4184 commit 5dc4c18
Show file tree
Hide file tree
Showing 12 changed files with 1,347 additions and 1,351 deletions.
2,636 changes: 1,323 additions & 1,313 deletions index.d.ts

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,25 +310,25 @@ if (!nativeBinding) {
throw new Error(`Failed to load native binding`)
}

const { UnifiedApi, IntegrationOS, Format, AppliesTo, AllocationMethod, MinimumRequirements, TransactionMethod, ChannelAvailability, Roles, CustomerSelection, SkuValidation, AccountType, Gender, CustomerEligibility, Status, TargetSelection, TargetType, Country, GlobalTaxType, JournalEntryStatus, IdentityProvider, DayOfWeek, AccountEngagementLevel, ReviewApprovalStatus, StakeholderType, AccountStatus, CampaignStatus, CustomerType, AccountingAccountType, MessageReadStatus, MessageContentType, MessageDeliveryStatus, ReactionType, SupportTicketPriority, IssueLifecycleStatus, SupportQueryType, OrderStatus, DiscountType, ImageMimeType, FulfillmentStatus, OrderingCriteria, ChatType, ProductAvailabilityStatus, ExpenseApprovalStatus, FinancialChargeType, ItemAvailabilityStatus, BillingStatus, FinancialAccountStatus, TransactionStatus, InvoiceAdjustmentType, DataType, EmploymentType, TimeCycle, FinancialTrackingCategories, CreditNoteStatus, PaymentTerm, EmploymentAndCandidateStatus, OrganizationalRole, CampaignType, ContactAddressType, CustomerStatus, SocialPlatform, LeadLifecycleStatus, ConversationStatus, CommunicationRole, ParticipantEngagementStatus, ItemEntityStatus, Currency, CustomerEligibilityStatus, LifecycleStatus, PaymentMethod, FinancialTransactionStatus, AuditOpinionType, InventoryStorageType, ItemCondition, TransactionType, VisibilityScope, PaymentStatus, EntityLifecycleStatus, TransactionChannel, FinancialDisputeStatus, ContentVisibility, DeviceUsageType, EntityCategory, GenderIdentity, CommunicationMethod, FinancialTransactionType, EmailCategoryType, UniversalIdentifierType, AccessControlModel, ParticipantType, PriorityLevel, TaskStatus, UserStatus, PromotionType, MimeType, PrerequisiteRangeType, TaxType, ModifierType, CardType, PrepaidType, EntryMethod, CvvStatus, AvcStatus, CreditType } = nativeBinding
const { UnifiedApi, IntegrationOS, TargetSelection, CustomerEligibility, AllocationMethod, Format, ChannelAvailability, TargetType, AppliesTo, TransactionMethod, MinimumRequirements, Gender, Status, Roles, SkuValidation, AccountType, CustomerSelection, Country, GlobalTaxType, JournalEntryStatus, IdentityProvider, DayOfWeek, AccountEngagementLevel, ReviewApprovalStatus, StakeholderType, AccountStatus, CampaignStatus, CustomerType, AccountingAccountType, MessageReadStatus, MessageContentType, MessageDeliveryStatus, ReactionType, SupportTicketPriority, IssueLifecycleStatus, SupportQueryType, OrderStatus, DiscountType, ImageMimeType, FulfillmentStatus, OrderingCriteria, ChatType, ProductAvailabilityStatus, ExpenseApprovalStatus, FinancialChargeType, ItemAvailabilityStatus, BillingStatus, FinancialAccountStatus, TransactionStatus, InvoiceAdjustmentType, DataType, EmploymentType, TimeCycle, FinancialTrackingCategories, CreditNoteStatus, PaymentTerm, EmploymentAndCandidateStatus, OrganizationalRole, CampaignType, ContactAddressType, CustomerStatus, SocialPlatform, LeadLifecycleStatus, ConversationStatus, CommunicationRole, ParticipantEngagementStatus, ItemEntityStatus, Currency, CustomerEligibilityStatus, LifecycleStatus, PaymentMethod, FinancialTransactionStatus, AuditOpinionType, InventoryStorageType, ItemCondition, TransactionType, VisibilityScope, PaymentStatus, EntityLifecycleStatus, TransactionChannel, FinancialDisputeStatus, ContentVisibility, DeviceUsageType, EntityCategory, GenderIdentity, CommunicationMethod, FinancialTransactionType, EmailCategoryType, UniversalIdentifierType, AccessControlModel, ParticipantType, PriorityLevel, TaskStatus, UserStatus, PromotionType, MimeType, PrerequisiteRangeType, TaxType, ModifierType, CardType, PrepaidType, EntryMethod, CvvStatus, AvcStatus, CreditType } = nativeBinding

module.exports.UnifiedApi = UnifiedApi
module.exports.IntegrationOS = IntegrationOS
module.exports.TargetSelection = TargetSelection
module.exports.CustomerEligibility = CustomerEligibility
module.exports.AllocationMethod = AllocationMethod
module.exports.Format = Format
module.exports.ChannelAvailability = ChannelAvailability
module.exports.TargetType = TargetType
module.exports.AppliesTo = AppliesTo
module.exports.AllocationMethod = AllocationMethod
module.exports.MinimumRequirements = MinimumRequirements
module.exports.TransactionMethod = TransactionMethod
module.exports.ChannelAvailability = ChannelAvailability
module.exports.MinimumRequirements = MinimumRequirements
module.exports.Gender = Gender
module.exports.Status = Status
module.exports.Roles = Roles
module.exports.CustomerSelection = CustomerSelection
module.exports.SkuValidation = SkuValidation
module.exports.AccountType = AccountType
module.exports.Gender = Gender
module.exports.CustomerEligibility = CustomerEligibility
module.exports.Status = Status
module.exports.TargetSelection = TargetSelection
module.exports.TargetType = TargetType
module.exports.CustomerSelection = CustomerSelection
module.exports.Country = Country
module.exports.GlobalTaxType = GlobalTaxType
module.exports.JournalEntryStatus = JournalEntryStatus
Expand Down
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ proc-macro = true
[dependencies]
anyhow = "1.0"
futures-util = "0.3"
integrationos-domain = "0.1.0"
integrationos-domain = "5.0.1"
proc-macro2 = "1.0"
quote = "1.0"
regex = "1.10"
Expand Down
22 changes: 4 additions & 18 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
extern crate proc_macro;

use std::collections::HashSet;

use anyhow::{bail, Result};
use integrationos_domain::{
algebra::extension::StringExt,
api_model_config::Lang,
common_model::{CommonEnum, CommonModel, DataType},
prefix::IdPrefix,
Id,
Id, StringExt,
};
use proc_macro::TokenStream;
use quote::quote;
use serde::{Deserialize, Serialize};
use std::collections::HashSet;
use syn::{parse_macro_input, ImplItem, ImplItemFn, ItemImpl};

#[proc_macro]
Expand Down Expand Up @@ -77,13 +75,7 @@ async fn get_common_models() -> Result<TokenStream> {
}

for ce in enums {
let napi_attr = format!(
"#[napi(string_enum = \"kebab-case\", js_name = {})]",
ce.name.replace("::", "")
);

let rust = ce.as_rust_type();
output.push_str(&napi_attr);
let rust = ce.as_rust_schema();
output.push_str(&rust);
}

Expand All @@ -99,13 +91,7 @@ async fn get_common_models() -> Result<TokenStream> {
}

for ce in result.rows {
let napi_attr = format!(
"#[napi(string_enum = \"kebab-case\", js_name = {})]",
ce.name.replace("::", "")
);

let rust = ce.as_rust_type();
output.push_str(&napi_attr);
let rust = ce.as_rust_schema();
output.push_str(&rust);
}

Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@integrationos/node-darwin-arm64",
"version": "3.8.5",
"version": "3.8.6",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@integrationos/node-darwin-x64",
"version": "3.8.5",
"version": "3.8.6",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@integrationos/node-linux-arm64-gnu",
"version": "3.8.5",
"version": "3.8.6",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@integrationos/node-linux-x64-gnu",
"version": "3.8.5",
"version": "3.8.6",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@integrationos/node-win32-arm64-msvc",
"version": "3.8.5",
"version": "3.8.6",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@integrationos/node-win32-x64-msvc",
"version": "3.8.5",
"version": "3.8.6",
"os": [
"win32"
],
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@integrationos/node",
"version": "3.8.5",
"version": "3.8.6",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand Down

0 comments on commit 5dc4c18

Please sign in to comment.